Closed ameyp closed 10 years ago
Thank you for report. There is a typo in example. Now fixed. All variables passed to templates need to be prefixed with @
.
About your first question. Can you show code that represents error?
I'm getting the same error with the changes you made in the README
Edit - Sorry, the README sample is working. I'll abstract my code into a case that's causing the error.
Ok, I made the simplest example and it worked. There was a bug in my template, I was using a for loop variable with @
instead of using it directly. Sorry for the erroneous bug.
Suppose that template 'layout.ect' extends template 'default.ect'. Any variables passed to a call to
render
with layout.ect appear asundefined
for any usage in templatedefault.ect
The example in the readme under "You may use JavaScript object as root." also fails with the following: