martenframework / marten

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

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

Closed notramo closed 7 months ago

notramo commented 7 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 7 months ago

Thanks for reporting this! 🙏 Fixed in 37e65c84a199caa53ce41b83bd541a1c84c25010.