clabango icon indicating copy to clipboard operation
clabango copied to clipboard

introduce tags/value-or-var

Open piranha opened this issue 11 years ago • 2 comments

It makes it's easier for tags to decide if they've received a string or a name of variable from context.

piranha avatar Jun 07 '13 20:06 piranha

Nice change, but what do you think about having introduced a change to include (and extends) whereby now it can take not just a literal string, but a value from the template context?

danlarkin avatar Jun 07 '13 20:06 danlarkin

Well, old behavior is preserved and new one added: before that you had to write {% include "template.html" %}, now you can use a variable...

It's not like I need include or extends to be dynamic (though they obviously can), it's just I needed such a function in my own template tag and thought it would be good to introduce it in library itself.

piranha avatar Jun 07 '13 20:06 piranha