Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error 'XXX - Not supported' with FOREACH directive. #30

Open
uncleawie opened this issue Dec 18, 2015 · 0 comments
Open

Confusing error 'XXX - Not supported' with FOREACH directive. #30

uncleawie opened this issue Dec 18, 2015 · 0 comments

Comments

@uncleawie
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant