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>
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Website{% if title %} - {{ title }}{% endif %}&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
     {{ content_for_layout }}
    &lt;/body&gt;
  &lt;/html&gt;
</pre>
</code>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
liquid_cms-0.2.0.6 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.3.0.3 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.2.0.5 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.2.0.4 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.3.0.2 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.2.0.3 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.2.0.2 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.3.0.1 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.3.0 app/views/cms/documentation/_notes.html.erb
liquid_cms-0.2.0 app/views/cms/documentation/_notes.html.erb