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>
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 removing this tag from public templates.
{% debug:help %}
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 %}
Renders informational or error messages for the system.
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 form. The supported forms are:
Form | Allowed Field Names | Spam Protection |
---|---|---|
application.create |
|
No |
application.update |
|
No |
signup |
|
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 %}
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.
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 %}
{% endif %}
This tag includes portlet by system name.
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.
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>