martenframework / marten

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

Implement with tag for template #105

Closed treagod closed 1 year ago

treagod commented 1 year ago

I've added a with tag to assign variables locally within the template.

I'm not quite sure about the last test case if the order should matters. Maybe it would be better to first look in the context if any variable name is already defined and shadow the outer variable only after assignment was done.

Closes #86