|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
SlowFox Smarty Regular
Joined: 02 Oct 2006 Posts: 55
|
Posted: Sat Nov 28, 2020 8:58 am Post subject: default modifiers |
|
|
As there seems to be no more noteworthy development on Smarty chances to be heard are not too big, but anyway: I'd plead for the default modifiers to be applied at run-time instead of compile-time.
I have a couple of documents using escape of convert (for applying the desired encoding) as default modifiers, and it would be really convenient to select the desired encoding or the type of escaping (which may in fact be different for different applications). In fact, the default modifiers are almost useless without this possibility which leads to writing code like Code: | {$name|escape:$doctype|encode:$charset} | for each and every variable throughout the document. This is neither efficient nor readable :( |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|