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

[BUG] ViewData not working anymore with jet #1876

Closed
mblaschke opened this issue Apr 21, 2022 · 1 comment
Closed

[BUG] ViewData not working anymore with jet #1876

mblaschke opened this issue Apr 21, 2022 · 1 comment

Comments

@mblaschke
Copy link

Describe the bug
Data passed with ctx.ViewData is not passed anymore to jet
still works with jet.AddRuntimeVars

To Reproduce
Steps to reproduce the behavior:

  1. try template_jet_0, html title is not set
  2. remove the isset from /layouts/application.jet
  3. log the error from the route /all-done:
Jet Runtime Error ("/layouts/application.jet":5): identifier "title" not available in current (map[]) or parent scope, global, or default variables

Expected behavior
title is set and passed to jet variable map

Desktop (please complete the following information):

  • OS: osx

iris.Version

  • v12.2.0-beta1
  • master
@kataras
Copy link
Owner

kataras commented Apr 23, 2022

Hello @mblaschke, thanks for the report. It's fixed on the latest /v12@master version.

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

No branches or pull requests

2 participants