Sha256: d9dbe0fda48feea5624849db8a64532f433659c3d2e3a57f55feba3326c204fa
Contents?: true
Size: 826 Bytes
Versions: 10
Compression:
Stored size: 826 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> <code> <pre> {% assign title = 'Page Title' %} </pre> </code> <p>In the layout template:</p> <code> <pre> <html> <head> <title>Website{% if title %} - {{ title }}{% endif %}</title> </head> <body> {{ content_for_layout }} </body> </html> </pre> </code>
Version data entries
10 entries across 10 versions & 1 rubygems