Home Download Buy Blog Forum Support

Lowercase snippet variable and insert spaces?

Lowercase snippet variable and insert spaces?

Postby chasenpflug on Wed Feb 22, 2012 8:08 pm

Is it possible to convert a snippet variable to lower case and insert some spaces when it's mirrored elsewhere? For example:

Original: SomeObject
Mirrored result: some object

This is specifically around a Django Model template which is currently written as such:

Code: Select all
class ${1:ModelName}(models.Model):

    class Meta:
        verbose_name = _('$1')
        verbose_name_plural = _('$1s')

And I'd like to set the verbose names to the proper representations of MODELNAME.
Posts: 1
Joined: Wed Feb 22, 2012 7:59 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 16 guests