Sha256: d801a638634d5aef5bcaa5d80403cf9d4c45bf36418d9f6a797b95fbae195e78
Contents?: true
Size: 796 Bytes
Versions: 19
Compression:
Stored size: 796 Bytes
Contents
<h2>Notes</h2> <p>Variables and text can be used for parameters to the various tags and blocks.</p> <p> Text parameter: <code>{% tag name:"text_value" %}</code><br/> Variable parameter: <code>{% tag name:var_value %}</code> </p> <p>See <strong>assign</strong> and <strong>capture</strong> in the github link at the top for details on assigning values to variables.</p> <p>Variables assigned to in templates can be used in the layouts template as well.</p> <p>In the child template:</p> <pre> {% assign title = 'Page Title' %} </pre> <p>In the layout template:</p> <pre> <html> <head> <title>Website{% if title %} - {{ title }}{% endif %}</title> </head> <body> {{ content_for_layout }} </body> </html> </pre>
Version data entries
19 entries across 19 versions & 1 rubygems