|
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 |
jLix Smarty Regular
Joined: 01 Apr 2009 Posts: 59 Location: Lowlands, EU
|
Posted: Wed Apr 01, 2009 9:43 am Post subject: {var} |
|
|
Hello, I've created a tiny Smarty plugin called {var}
(As I'm new to this forum I need 3 posts before I can post the URL where you can find the plugin, so I start off with a little monologue in order to meet this criterium.) _________________ http://jlix.net/extensions/smarty |
|
Back to top |
|
jLix Smarty Regular
Joined: 01 Apr 2009 Posts: 59 Location: Lowlands, EU
|
Posted: Wed Apr 01, 2009 9:44 am Post subject: |
|
|
The {var} function assigns values to template variables in a more intuitive and brief manner than Smarty's default {assign} function. Multiple variables can be assigned in one {var} statement. _________________ http://jlix.net/extensions/smarty |
|
Back to top |
|
jLix Smarty Regular
Joined: 01 Apr 2009 Posts: 59 Location: Lowlands, EU
|
Posted: Wed Apr 01, 2009 9:44 am Post subject: |
|
|
Instead of writing:
Code: | {assign var="welcome" value="Hello world!"}
{assign var="foo" value="bar"} |
you can just write:
Code: | {var welcome="Hello world!" foo="bar"} |
_________________ http://jlix.net/extensions/smarty |
|
Back to top |
|
jLix Smarty Regular
Joined: 01 Apr 2009 Posts: 59 Location: Lowlands, EU
|
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
Posted: Wed Apr 01, 2009 11:20 am Post subject: |
|
|
Thx for your plugin - really useful ... |
|
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
|