Renders a form to enter data required for Braintree Blue payment gateway.
Renders the cross site request forgery meta tags.
Example: Using csrf tag in liquid
<html>
<head>
{% csrf %}
</head>
</html>
Provides the desired asset file
Example: Using cdn_asset tag in liquid
%{ cdn_asset '/swagger/2.1.3/swagger.js' %}
Renders body of a page. Use this only inside a layout.
Prints all liquid variables available in a template into an HTML comment.' We recommend to remove this tag from public templates.
{% debug:help %}
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 %}
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>
Renders a footer HTML snippet.
DEPRECATED: This tag is deprecated, use a CMS partial instead
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 |
|
No | |
application.update |
|
No | |
signup |
|
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 %}
An HTML table with latest forum posts.
DEPRECATED: Use forum
drop instead.
Example: Using latest_forum_posts tag liquid
{% latest_forum_posts %}
Renders a HTML snippet with the latest messages for the user.
Example: Using latest_messages tag liquid
{% latest_messages %}
Renders the logo.
DEPRECATED: This tag is deprecated, use {{ provider.logo_url }} instead.
Example: Using menu tag in liquid
<html>
<body>
{% logo %}
</body>
</html>
DEPRECATED: This tag is deprecated, use '{% include "menu" %}' instead.
Renders a footer HTML snippet.
DEPRECATED: This tag is deprecated, use a CMS partial instead
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 %}
This tag includes portlet by system name.
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>
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>
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>