tmahamadou01 / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

how to change value of custom variable before expansion #344

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I'm trying to use some abbreviation like:

html:5[lang="Sk-sk][DC.date='current-date-informat'] 

to produce more complex skeleton of site.
Is it possible to include more custom variables in zen-coding script and to 
modify them on the fly before expansion of text ?

Original issue reported on code.google.com by Skrab...@gmail.com on 6 Jul 2012 at 1:17

GoogleCodeExporter commented 8 years ago
You can include as many variables as you like into your snippet and override 
them in runtime. You can define variable either in sen_settings or 
my_zen_settings file. 

In your example, DC.date is invalid attribute name: it cannot contain dot 
character.

Also note that you can type as many attributes as you like in single attribute 
set and omit quotes for single-word attribute values, e.g. `html:5[lang=Sk-sk 
DC_date=current-date-informat]` is the same as 
`html:5[lang="Sk-sk"][DC_date='current-date-informat']` 

Original comment by serge....@gmail.com on 9 Jul 2012 at 9:52