Page 1 of 1

Show Twig code in twig template

PostPosted: Tue Feb 25, 2014 5:57 pm
by issux
Hello,

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.

Thanks

Re: Show Twig code in twig template

PostPosted: Fri Mar 21, 2014 4:55 pm
by Bob
I've done a quick test, and {% verbatim %}... {% endverbatim %} works fine for me.