Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verbatim tag #574

Merged
merged 1 commit into from
Jul 3, 2018
Merged

Add verbatim tag #574

merged 1 commit into from
Jul 3, 2018

Conversation

toptalo
Copy link
Contributor

@toptalo toptalo commented Jul 3, 2018

Address issue #571

The verbatim tag marks sections as being raw text that should not be parsed. For example to put Twig syntax as example into a template you can use this snippet:

{% verbatim %}
    <ul>
    {% for item in seq %}
        <li>{{ item }}</li>
    {% endfor %}
    </ul>
{% endverbatim %}

Address issue #571
@dave-irvine dave-irvine merged commit 662d520 into twigjs:master Jul 3, 2018
@toptalo
Copy link
Contributor Author

toptalo commented Jul 5, 2018

Thanks!

@toptalo toptalo deleted the feature-verbatim branch July 9, 2018 14:56
willrowe pushed a commit to willrowe/twig.js that referenced this pull request May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants