User Tools

Site Tools


en:template:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:template:start [2017/06/19 14:40]
Nicolas Ronvel [Template's Overview]
en:template:start [2017/06/22 11:02]
Nicolas Ronvel [Globals]
Line 14: Line 14:
     "​sharedOptions":​ [ ],     "​sharedOptions":​ [ ],
     "​styles"​ : [ ],     "​styles"​ : [ ],
 +    "​globals":​ [ ]
  };  };
 </​code>​ </​code>​
Line 61: Line 62:
 See the [[styles|Styles]] section for a more complete description of a Style. See the [[styles|Styles]] section for a more complete description of a Style.
  
 +===== Globals =====
  
 +The ''​globals''​ part of a template stores data that is repeated through the template, and that can be put in a single global constant, in order to help maintainability.
 +
 +See the [[global]] for an explanation on how to add globals to your template.
en/template/start.txt · Last modified: 2017/06/22 11:02 by Nicolas Ronvel