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:36]
Nicolas Ronvel [Styles]
en:template:start [2017/06/22 11:02] (current)
Nicolas Ronvel [Globals]
Line 11: Line 11:
     "​description":​ { },     "​description":​ { },
     "​fonts"​ : [ ],     "​fonts"​ : [ ],
 +    "​webfonts":​ { },
     "​sharedOptions":​ [ ],     "​sharedOptions":​ [ ],
-    "​styles"​ : [ ]+    "​styles" : [ ], 
 +    "​globals": [ ]
  };  };
 </​code>​ </​code>​
Line 40: Line 42:
 See [[custom-fonts|Custom Fonts]] for an explanation on how to add a font to your template. See [[custom-fonts|Custom Fonts]] for an explanation on how to add a font to your template.
  
 +===== Webfonts =====
 +
 +
 +The ''​webfonts''​ element in the template is optional. Any template will work even if it's missing.
 +
 +If you need specific font inside your template, and that it's available on a web library, you can reference it. It will be loaded from the library by the user's browser.
 +
 +See [[web-fonts]] for an explanation on how to add a web-font to your template.
 ===== Shared Options ===== ===== Shared Options =====
  
Line 52: 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.
  
-===== Webfonts ​=====+===== 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.
  
-Since the release 0.3.0 (Beta 3), it is possible ​to add webfonts dynamically+See the [[global]] for an explanation on how to add globals to your template.
en/template/start.1497875799.txt.gz · Last modified: 2017/06/19 14:36 by Nicolas Ronvel