Show Twig code in twig template

A forum for Bolt related questions / issues

Show Twig code in twig template

Postby issux » Tue Feb 25, 2014 5:57 pm


I have a page wich contains twig code, for example i want to show the following code:
{ % for record in mostviewedget('posts') % }

The problem is twig parsed it and returns an error when i see this page.

How i can to show twig raw code in a page?

I try to use raw and verbatim tags, but it dosen't works.

Posts: 1
Joined: Tue Feb 25, 2014 5:50 pm

Re: Show Twig code in twig template

Postby Bob » Fri Mar 21, 2014 4:55 pm

I've done a quick test, and {% verbatim %}... {% endverbatim %} works fine for me.
Lead Developer
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm

Return to Bolt Discussion

Who is online

Users browsing this forum: No registered users and 1 guest