You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this issue requires a fix, but I am posting this in case anyone else thinks Jemplate doesn't support FOREACH directives. When diagnosing my first template compilation I isolated it down to this template:
[%- SET list = [1,3,5] -%]
[%- FOREACH i iN list -%]
[%- i -%]
[%- END -%]
Compiling results in the disheartening error:
$ jemplate --compile views/test.tt
/*
This JavaScript code was generated by Jemplate, the JavaScript
<snip>
line 4: XXX - Not supported yet at /Users/awie/local/perl-5.22.0/lib/site_perl/5.22.0/Jemplate/Directive.pm line 291. at /Users/awie/local/perl-5.22.0/lib/site_perl/5.22.0/Jemplate.pm line 374.
In fact the issue was simply that the IN needed to be in all caps.
Cheers
Awie
The text was updated successfully, but these errors were encountered:
I am not sure if this issue requires a fix, but I am posting this in case anyone else thinks Jemplate doesn't support FOREACH directives. When diagnosing my first template compilation I isolated it down to this template:
Compiling results in the disheartening error:
In fact the issue was simply that the IN needed to be in all caps.
Cheers
Awie
The text was updated successfully, but these errors were encountered: