Tag 'braintree_customer_form'

Renders a form to enter data required for Braintree Blue payment gateway.

Tag 'csrf'

Renders the cross site request forgery meta tags.

Example: Using csrf tag in liquid.

<html>
  <head>
    {% csrf %}
  </head>
</html>

Tag 'content'

Renders body of a page. Use this only inside a layout.

Tag 'content_for'

Tag 'debug'

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

{% debug:help %}

Tag 'email'

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

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

Subtag Description Example
subject dynamic subject {% subject = 'Greetings from Example company!' %}
cc carbon copy {% cc = 'boss@example.com' %}
bcc blind carbon copy {% bcc = 'all@example.com' %}
from the actual sender {% from = 'system@example.com' %}
reply-to {% reply-to = 'support@example.com' %}
header custom SMTP header {% header 'X-SMTP-Group' = 'Important' %}
do_not_send discard the email {% do_not_send %}

Example: Conditional blind carbon copy

{% email %}
  {% if plan.system_name == 'enterprise' %}
     {% bcc 'marketing@world-domination.org' %}
  {% endif%}
{% endemail %}

Example: Disabling emails

{% email %}
  {% do_not_send %}
{% endemail %}

Example: Signup email filter

{% email %}
  {% if plan.system == 'enterprise' %}
    {% subject = 'Greetings from Example company!' %}
    {% reply-to = 'support@example.com' %}
  {% else %}
    {% do_not_send %}
  {% endif %}
{% endemail %}

Tag 'flash'

Renders informational or error messages for the system.

Example: Using flash tag in liquid

<html>
  <body>
   {% flash %}
  </body>
</html>

Tag 'footer'

Renders a footer HTML snippet.

DEPRECATED: This tag is deprecated, use a CMS partial instead.

Tag 'form'

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

Form Allowed Field Names Spam Protection
application.create
  • application[name]
  • application[description]
  • application[<any-extra-field>]
No
application.update
  • application[name]
  • application[description]
  • application[<any-extra-field>]
No
signup
  • account[org_name]
  • account[org_legaladdress]
  • account[org_legaladdress_cont]
  • account[city]
  • account[state]
  • account[zip]
  • account[telephone_number]
  • account[country_id]
  • account[<any-extra-field>]
  • account[user][username]
  • account[user][email]
  • account[user][first_name]
  • account[user][last_name]
  • account[user][password]
  • account[user][password_confirmation]
  • account[user][title]
  • account[user][<any-extra-field>]
Yes

Example: A form to create an application

{% form 'application.create', application %}
   <input type='text' name='application[name]'
          value='{{ application.name }}'
          class='{{ application.errors.name | error_class }}'/>

   {{ application.errors.name | inline_errors }}

   <input name='commit'  value='Create!'>
{% endform %}

Tag 'latest_forum_posts'

An HTML table with latest forum posts.

DEPRECATED: Use forum drop instead.

Example: Using latest_forum_posts tag liquid

{% latest_forum_posts %}

Tag 'latest_messages'

Renders a html snippet with the latest messages for the user.

Example: Using latest_messages tag liquid

{% latest_messages %}

Tag 'logo'

Renders the logo.

Example: Using menu tag in liquid

<html>
  <body>
   {% logo %}
  </body>
</html>

Tag 'menu'

DEPRECATED: This tag is deprecated, use '{% include "menu" %}' instead.

Tag 'oldfooter'

Renders a footer html snippet.

DEPRECATED: This tag is deprecated, use a CMS partial instead

Tag 'plan_widget'

Includes a widget to review or change application plan

{% if application.can_change_plan? %}
  <a href="#choose-plan-{{ application.id }}"
     id="choose-plan-{{application.id}}">
    Review/Change
  </a>
  {% plan_widget application %}
{% endif %}

Tag 'portlet'

This tag includes portlet by system name.

Tag 'submenu'

Renders a submenu html snippet for a logged in user.

DEPRECATED: This tag is deprecated, use a 'submenu' partial instead.

Example: Using submenu tag in liquid.

<html>
  <body>
   {% submenu %}
  </body>
</html>

Tag '3scale_essentials'

Tag 'user_widget'

Renders a user widget HTML snippet.

Example: Using user_widget tag in liquid.

<html>
  <body>
   {% user_widget %}
    <p class="notice">If you are logged in you see profile related links above.</p>
    <p class="notice">If you are not login you are invited to login or signup.</p>
  </body>
</html>