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
test/ejs.js fails with ejs.0.8.4 #90
Comments
As best I can tell this error is because the new
is now
It's the result of tj/ejs#79 which is supposed to "Allow named function in views" |
Yeah, the problem came out of this change. But I have a strong believe that it is caused by lazySource not being playing nice with this change. So I'm gonna drop lazySource to avoid this. lazySource were introduced to allow engines generate different things (JST vs really pre-processing) but I have a feeling it can be resolved much easier. |
We decided, that lazy-loading feature implementation is not good, and makes too many problems with archtecture. So, it will be removed. I've disabled appropriate tests. PS. First pass still failing, second is ok. To reproduce - remove |
The problem isn't just the lazy-loading. A simple
In other words, pass the scope through this new I submitted tj/ejs#126 for this issue (6/24) |
With this async compile, how are (or were) local variables supposed to be passed to the template? For example, if in this test, So far the best I can do is use a helper function. |
Thanks in advance. Although lazySources are adding it's own problems, so I was able to remove some problems with cleaning them out - I have a better plan how to re-introduce ability to use EJS for both server-side preprocessing and for JST. |
Hmm. I tend to think you're right. We pass something like this to EJS: |
Probably it worth to rework the way we prepare locals to respect properties, not only helper functions... |
Solved in master, because lazy-stuff removed |
test/ejs.js
gives an errorThis is with a newly installed mincer. It runs ok if I install the previous version of ejs.
So evidently there is some incompatibility with the latest ejs (0.8.4).
The text was updated successfully, but these errors were encountered: