-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ctx.ViewData not work with JetEngine #1330
Comments
Hello @Dexus, I agree with you. To set runtime template variables use the EDIT: Give me some time, I may need to check if the data is map and if so then somehow convert these to |
@Dexus, it's fixed. Please test it by yourself, example updated as well. iris/_examples/view/template_jet_0/main.go Lines 125 to 137 in de2f170
|
Former-commit-id: 221e01638b671586cdab2b84518bd6a1c8d07bda
Hi @kataras,
I'm testing the JetEngine as a view. Unfortunately, the default ctx.ViewData is not passed to JetEngine. In my opinion this would be a Braking Change.
Wouldn't it make sense to make this usable in the same way as with the other engines?
Example:
Returns in Logs:
[ERRO] 2019/08/07 12:38 Jet Runtime Error("pages/index.jet":4): identifier "demo" is not available in the current scope map[]
The text was updated successfully, but these errors were encountered: