abw / Template2

Perl Template Toolkit v2
http://template-toolkit.org/
146 stars 94 forks source link

Silent fail when accessing readonly template #270

Open sciurius opened 4 years ago

sciurius commented 4 years ago

Given this snippet:

[% META foo = "bar" %]
Hello [% template.foo %]!
[% template.foo = "blech" %]
Hello [% template.foo %]!

When processed (e.g. through tpage), it prints Hello bar! twice.

Apparently, the template is readonly. No problem, but I would really appreciate an exception instead of silent failure.