Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

default modifiers

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
SlowFox
Smarty Regular


Joined: 02 Oct 2006
Posts: 48

PostPosted: Sat Nov 28, 2020 8:58 am    Post subject: default modifiers Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP