
          <ul id="table-of-contents">
<a name="#%7Btoc.html_id%7D"></a>
            <li>
<a href="#tag-braintree_customer_form">Tag 'braintree_customer_form'</a>
          <ul id="toc-h2-tag-braintree_customer_form" class=""></ul>
</li>
<li>
<a href="#tag-csrf">Tag 'csrf'</a>
          <ul id="toc-h2-tag-csrf" class=""></ul>
</li>
<li>
<a href="#tag-content">Tag 'content'</a>
          <ul id="toc-h2-tag-content" class=""></ul>
</li>
<li>
<a href="#tag-content_for">Tag 'content_for'</a>
          <ul id="toc-h2-tag-content_for" class=""></ul>
</li>
<li>
<a href="#tag-debug">Tag 'debug'</a>
          <ul id="toc-h2-tag-debug" class=""></ul>
</li>
<li>
<a href="#tag-email">Tag 'email'</a>
          <ul id="toc-h2-tag-email" class=""></ul>
</li>
<li>
<a href="#tag-flash">Tag 'flash'</a>
          <ul id="toc-h2-tag-flash" class=""></ul>
</li>
<li>
<a href="#tag-footer">Tag 'footer'</a>
          <ul id="toc-h2-tag-footer" class=""></ul>
</li>
<li>
<a href="#tag-form">Tag 'form'</a>
          <ul id="toc-h2-tag-form" class=""></ul>
</li>
<li>
<a href="#tag-latest_forum_posts">Tag 'latest_forum_posts'</a>
          <ul id="toc-h2-tag-latest_forum_posts" class=""></ul>
</li>
<li>
<a href="#tag-latest_messages">Tag 'latest_messages'</a>
          <ul id="toc-h2-tag-latest_messages" class=""></ul>
</li>
<li>
<a href="#tag-logo">Tag 'logo'</a>
          <ul id="toc-h2-tag-logo" class=""></ul>
</li>
<li>
<a href="#tag-menu">Tag 'menu'</a>
          <ul id="toc-h2-tag-menu" class=""></ul>
</li>
<li>
<a href="#tag-oldfooter">Tag 'oldfooter'</a>
          <ul id="toc-h2-tag-oldfooter" class=""></ul>
</li>
<li>
<a href="#tag-plan_widget">Tag 'plan_widget'</a>
          <ul id="toc-h2-tag-plan_widget" class=""></ul>
</li>
<li>
<a href="#tag-portlet">Tag 'portlet'</a>
          <ul id="toc-h2-tag-portlet" class=""></ul>
</li>
<li>
<a href="#tag-submenu">Tag 'submenu'</a>
          <ul id="toc-h2-tag-submenu" class=""></ul>
</li>
<li>
<a href="#tag-3scale_essentials">Tag '3scale_essentials'</a>
          <ul id="toc-h2-tag-3scale_essentials" class=""></ul>
</li>
<li>
<a href="#tag-user_widget">Tag 'user_widget'</a>
          <ul id="toc-h2-tag-user_widget" class=""></ul>
</li>
          </ul><h1>
<a name="tag-braintree_customer_form" class="anchor" href="#tag-braintree_customer_form"><span class="mini-icon mini-icon-link"></span></a>Tag 'braintree_customer_form'</h1>

<p>Renders a form to enter data required for Braintree Blue payment gateway.</p>

<h1>
<a name="tag-csrf" class="anchor" href="#tag-csrf"><span class="mini-icon mini-icon-link"></span></a>Tag 'csrf'</h1>

<p>Renders the cross site request forgery meta tags.</p>

<p><strong>Example:</strong> Using csrf tag in liquid.</p>

<pre lang="liquid"><code>&lt;html&gt;
  &lt;head&gt;
    {% csrf %}
  &lt;/head&gt;
&lt;/html&gt;
</code></pre>

<h1>
<a name="tag-content" class="anchor" href="#tag-content"><span class="mini-icon mini-icon-link"></span></a>Tag 'content'</h1>

<p>Renders body of a page. Use this only inside a layout.</p>

<h1>
<a name="tag-content_for" class="anchor" href="#tag-content_for"><span class="mini-icon mini-icon-link"></span></a>Tag 'content_for'</h1>

<h1>
<a name="tag-debug" class="anchor" href="#tag-debug"><span class="mini-icon mini-icon-link"></span></a>Tag 'debug'</h1>

<p>Prints all liquid variables available in a template into an HTML comment.
We recommend <strong>removing this tag</strong> from public templates.</p>

<pre lang="liquid"><code>{% debug:help %}
</code></pre>

<h1>
<a name="tag-email" class="anchor" href="#tag-email"><span class="mini-icon mini-icon-link"></span></a>Tag 'email'</h1>

<p>The <code>email</code> tag allows you to customize the headers of your outgoing emails and is
available only inside the email templates.</p>

<p>There are several convenience subtags such as <code>cc</code> or <code>subject</code> (see the table below)
that simplify the job but you can also use a <code>header</code> subtag to set an arbitrary
SMTP header for the message.</p>

<table>
<thead><tr>
<th>Subtag</th>
<th>Description</th>
<th>Example</th>
</tr></thead>
<tbody>
<tr>
<td>subject</td>
<td>dynamic subject</td>
<td>{% subject = 'Greetings from Example company!' %}</td>
</tr>
<tr>
<td>cc</td>
<td>carbon copy</td>
<td>{% cc = '<a href="mailto:boss@example.com">boss@example.com</a>' %}</td>
</tr>
<tr>
<td>bcc</td>
<td>blind carbon copy</td>
<td>{% bcc = '<a href="mailto:all@example.com">all@example.com</a>' %}</td>
</tr>
<tr>
<td>from</td>
<td>the actual sender</td>
<td>{% from = '<a href="mailto:system@example.com">system@example.com</a>' %}</td>
</tr>
<tr>
<td>reply-to</td>
<td></td>
<td>{% reply-to = '<a href="mailto:support@example.com">support@example.com</a>' %}</td>
</tr>
<tr>
<td>header</td>
<td>custom SMTP header</td>
<td>{% header 'X-SMTP-Group' = 'Important' %}</td>
</tr>
<tr>
<td>do_not_send</td>
<td>discard the email</td>
<td>{% do_not_send %}</td>
</tr>
</tbody>
</table><p><strong>Example:</strong> Conditional blind carbon copy</p>

<pre lang="liquid"><code>{% email %}
  {% if plan.system_name == 'enterprise' %}
     {% bcc 'marketing@world-domination.org' %}
  {% endif%}
{% endemail %}
</code></pre>

<p><strong>Example:</strong> Disabling emails</p>

<pre lang="liquid"><code>{% email %}
  {% do_not_send %}
{% endemail %}
</code></pre>

<p><strong>Example:</strong> Signup email filter</p>

<pre lang="liquid"><code>{% email %}
  {% if plan.system == 'enterprise' %}
    {% subject = 'Greetings from Example company!' %}
    {% reply-to = 'support@example.com' %}
  {% else %}
    {% do_not_send %}
  {% endif %}
{% endemail %}
</code></pre>

<h1>
<a name="tag-flash" class="anchor" href="#tag-flash"><span class="mini-icon mini-icon-link"></span></a>Tag 'flash'</h1>

<p>Renders informational or error messages for the system.</p>

<p><strong>Example:</strong> Using flash tag in liquid</p>

<pre lang="liquid"><code>&lt;html&gt;
  &lt;body&gt;
   {% flash %}
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<h1>
<a name="tag-footer" class="anchor" href="#tag-footer"><span class="mini-icon mini-icon-link"></span></a>Tag 'footer'</h1>

<p>Renders a footer HTML snippet.</p>

<p><strong>DEPRECATED</strong>: This tag is deprecated, use a CMS partial instead.</p>

<h1>
<a name="tag-form" class="anchor" href="#tag-form"><span class="mini-icon mini-icon-link"></span></a>Tag 'form'</h1>

<p>Renders a form tag with an action and class attribute specified, depending on
the form. The supported forms are:</p>

<p></p><table>
<tr>
<th>Form</th>
     <th>Allowed Field Names</th>
     <th>Spam Protection</th>
   </tr>
<tr>
<th>application.create</th>
     <td>
       <ul>
<li>application[name]</li>
         <li>application[description]</li>
         <li>application[&lt;any-extra-field&gt;]</li>
       </ul>
</td>
     <td>No</td>
   </tr>
<tr>
<th>application.update</th>
     <td>
       <ul>
<li>application[name]</li>
         <li>application[description]</li>
         <li>application[&lt;any-extra-field&gt;]</li>
       </ul>
</td>
     <td>No</td>
   </tr>
<tr>
<th>signup</th>
     <td>
       <ul>
<li>account[org_name]</li>
         <li>account[org_legaladdress]</li>
         <li>account[org_legaladdress_cont]</li>
         <li>account[city]</li>
         <li>account[state]</li>
         <li>account[zip]</li>
         <li>account[telephone_number]</li>
         <li>account[country_id]</li>
         <li>account[&lt;any-extra-field&gt;]</li>
         <li>account[user][username]</li>
         <li>account[user][email]</li>
         <li>account[user][first_name]</li>
         <li>account[user][last_name]</li>
         <li>account[user][password]</li>
         <li>account[user][password_confirmation]</li>
         <li>account[user][title]</li>
         <li>account[user][&lt;any-extra-field&gt;]</li>
       </ul>
</td>
     <td>Yes</td>
   </tr>
</table><p><strong>Example:</strong> A form to create an application</p>

<pre lang="liquid"><code>{% form 'application.create', application %}
   &lt;input type='text' name='application[name]'
          value='{{ application.name }}'
          class='{{ application.errors.name | error_class }}'/&gt;

   {{ application.errors.name | inline_errors }}

   &lt;input name='commit'  value='Create!'&gt;
{% endform %}
</code></pre>

<h1>
<a name="tag-latest_forum_posts" class="anchor" href="#tag-latest_forum_posts"><span class="mini-icon mini-icon-link"></span></a>Tag 'latest_forum_posts'</h1>

<p>An HTML table with latest forum posts.</p>

<p><strong>DEPRECATED</strong>: Use <code>forum</code> drop instead.</p>

<p><strong>Example:</strong> Using latest_forum_posts tag liquid</p>

<pre lang="liquid"><code>{% latest_forum_posts %}
</code></pre>

<h1>
<a name="tag-latest_messages" class="anchor" href="#tag-latest_messages"><span class="mini-icon mini-icon-link"></span></a>Tag 'latest_messages'</h1>

<p>Renders a html snippet with the latest messages for the user.</p>

<p><strong>Example:</strong> Using latest_messages tag liquid</p>

<pre lang="liquid"><code>{% latest_messages %}
</code></pre>

<h1>
<a name="tag-logo" class="anchor" href="#tag-logo"><span class="mini-icon mini-icon-link"></span></a>Tag 'logo'</h1>

<p>Renders the logo.</p>

<p><strong>Example:</strong> Using menu tag in liquid</p>

<pre lang="liquid"><code>&lt;html&gt;
  &lt;body&gt;
   {% logo %}
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<h1>
<a name="tag-menu" class="anchor" href="#tag-menu"><span class="mini-icon mini-icon-link"></span></a>Tag 'menu'</h1>

<p><strong>DEPRECATED</strong>: This tag is deprecated, use '{% include "menu" %}' instead.</p>

<h1>
<a name="tag-oldfooter" class="anchor" href="#tag-oldfooter"><span class="mini-icon mini-icon-link"></span></a>Tag 'oldfooter'</h1>

<p>Renders a footer html snippet.</p>

<p><strong>DEPRECATED</strong>: This tag is deprecated, use a CMS partial instead</p>

<h1>
<a name="tag-plan_widget" class="anchor" href="#tag-plan_widget"><span class="mini-icon mini-icon-link"></span></a>Tag 'plan_widget'</h1>

<p>Includes a widget to review or change application plan</p>

<pre lang="liquid"><code>{% if application.can_change_plan? %}
  &lt;a href="#choose-plan-{{ application.id }}"
     id="choose-plan-{{application.id}}"&gt;
    Review/Change
  &lt;/a&gt;
  {% plan_widget application %}
{% endif %}
</code></pre>

<h1>
<a name="tag-portlet" class="anchor" href="#tag-portlet"><span class="mini-icon mini-icon-link"></span></a>Tag 'portlet'</h1>

<p>This tag includes portlet by system name.</p>

<h1>
<a name="tag-submenu" class="anchor" href="#tag-submenu"><span class="mini-icon mini-icon-link"></span></a>Tag 'submenu'</h1>

<p>Renders a submenu html snippet for a logged in user.</p>

<p><strong>DEPRECATED</strong>: This tag is deprecated, use a 'submenu' partial instead.</p>

<p><strong>Example:</strong> Using submenu tag in liquid.</p>

<pre lang="liquid"><code>&lt;html&gt;
  &lt;body&gt;
   {% submenu %}
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<h1>
<a name="tag-3scale_essentials" class="anchor" href="#tag-3scale_essentials"><span class="mini-icon mini-icon-link"></span></a>Tag '3scale_essentials'</h1>

<h1>
<a name="tag-user_widget" class="anchor" href="#tag-user_widget"><span class="mini-icon mini-icon-link"></span></a>Tag 'user_widget'</h1>

<p>Renders a user widget HTML snippet.</p>

<p><strong>Example:</strong> Using user_widget tag in liquid.</p>

<pre lang="liquid"><code>&lt;html&gt;
  &lt;body&gt;
   {% user_widget %}
    &lt;p class="notice"&gt;If you are logged in you see profile related links above.&lt;/p&gt;
    &lt;p class="notice"&gt;If you are not login you are invited to login or signup.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>