Tag 'active_docs'

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 'cdn_asset'

Provides the desired asset file

Example: Using cdn_asset tag in liquid

%{ cdn_asset '/swagger/2.1.3/swagger.js' %}

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 to remove this tag from public templates.

{% debug:help %}

Tag 'email'

The email tag allows you to customize 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

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

Example: Disabling emails at all

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

Example: Signup email filter

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

Tag 'flash'

Renders informational or error messages of the system.

DEPRECATED: This tag is deprecated, use FlashDrop instead.

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 name of the form. The supported forms are:

Form Allowed Field Names Spam Protection Notes
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 Sign Up directly to plans of your choice by adding one or more hidden fields with a name plan_ids[]. If a parameter of such name is found in the current URL, the input field is added automagically.

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.

DEPRECATED: This tag is deprecated, use {{ provider.logo_url }} instead.

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, wizard: true %}
{% endif %}

Tag 'portlet'

This tag includes portlet by system name.

Tag 'sort_link'

Renders a link that sorts the column of table based on current params

Example: Using sort_link in liquid

<html>
  <table>
    <thead>
      <tr>
        <th>
          {% sort_link column: 'level'  %}
        </th>
        <th>
          {% sort_link column: 'timestamp' label: 'Time'  %}
        </th>
      </tr>
    </thead>
  </table>
</html>

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.

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

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>