martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
415 stars 22 forks source link

Variables can not be passed via `with` keyword when `isolated_inclusions = true` #223

Closed notramo closed 5 months ago

notramo commented 5 months ago
{% assign text="Email" %}
{% include "components/input.html" with label=text %}

The above snippet throws an error. Config:

  config.templates.strict_variables = true
  config.templates.isolated_inclusions = true
ellmetha commented 5 months ago

Thanks for reporting this! 🙏 Fixed in 37e65c84a199caa53ce41b83bd541a1c84c25010.