Liquid Exception: Variable '{{' was not properly terminated with regexp: /\}\}/ in post

1,337 views
Skip to first unread message

Evsyukov Denis

unread,
Jun 2, 2011, 7:46:40 AM6/2/11
to jeky...@googlegroups.com
Hello! 

I'm trying to create an article, in which there is a code with the symbols {{ 
Describing it as follows, first put 4 spaces for unit conversion in the code: 

    -- {{{Tags 

When I compile the site, I get the error message: 

Liquid Exception: Variable '{{' was not properly terminated with regexp: /\}\}/  in post

Although the site itself is still being generated. I was trying to escape the { with a slash, the error disappears, but the slash starts appear in the code, which can not be tolerated. Tried to replace the symbol on his hex, just in the code begins to show the code itself, rather than a symbol. 

How can we make correct compilation of this piece of code? 
Thank you!

--
Evsyukov Denis
Registered Linux User #442 821
Open Source Life

Evsyukov Denis

unread,
Jun 12, 2011, 3:21:39 AM6/12/11
to jeky...@googlegroups.com
I managed to solve this problem through the use of plug-in https://gist.github.com/1020852
Just around the code, in which there are data place the brackets tags {% raw %} and {% endraw %}
After that generation passes without a problem.

2011/6/2 Evsyukov Denis <denis.e...@gmail.com>
Reply all
Reply to author
Forward
0 new messages