This a fix for template using multiline {% %} statements #9

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant

When using {% (js code) \n%}, the \n is removed and the %} tag is next
to a javascript statement causing a parsing error.
Eg:
{%
myArray = [];
%}
=> {%myArray=[];%} instead of {% myArray=[]; %}

Frédéric Vauchelles added some commits Feb 4, 2013

Frédéric Vauchelles
Fix: view compilation error when using % tags
When using {% (js code) \n%}, the \n is removed and the %} tag is next
to a javascript statement causing a parsing error.
Eg:
{%
myArray = [];
%}
=> {%myArray=[];%} instead of {% myArray=[]; %}
Frédéric Vauchelles
Fix: compilation with {% tags
Fix: multiline {% tags (the ending tag %} is no more next to the last
statement)
Fix: tag {% used with a non out assignement (eg {% if (...) { %} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment