|
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 |
thesame Smarty n00b
Joined: 23 Mar 2011 Posts: 3
|
Posted: Wed Mar 23, 2011 2:40 pm Post subject: Custom functions shorttags |
|
|
Hi. I found it annoying that custom functions cannot accept shorthand parameters, so I made small patch for that: http://pastebin.com/dUN86YTX |
|
Back to top |
|
thesame Smarty n00b
Joined: 23 Mar 2011 Posts: 3
|
|
Back to top |
|
comrade_fuzz Smarty n00b
Joined: 17 Dec 2011 Posts: 3
|
Posted: Sat Dec 17, 2011 6:08 pm Post subject: |
|
|
Thanks a lot! This is really good feature i've googled so hard. |
|
Back to top |
|
comrade_fuzz Smarty n00b
Joined: 17 Dec 2011 Posts: 3
|
Posted: Sat Dec 17, 2011 6:10 pm Post subject: |
|
|
Have you any ideas how can I upgrade smarty without replacing those lines? |
|
Back to top |
|
comrade_fuzz Smarty n00b
Joined: 17 Dec 2011 Posts: 3
|
Posted: Sat Dec 17, 2011 6:20 pm Post subject: |
|
|
This patch corrupts compiling boolean shorthands like this:
Code: | {foobar bar=foo flag} |
flag supposed to be true, but it generates an error in template's cache |
|
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
|