|
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 |
looka Smarty Rookie
Joined: 24 May 2008 Posts: 11
|
Posted: Sun Jun 29, 2008 11:41 am Post subject: endif, endfereach etc |
|
|
hi!
i wonder, why this synax is not supported:
Code: | [if sth]do blah[endif] |
it would take really no effort at all to include some case clauses into smarty compiler... |
|
Back to top |
|
w00t Smarty Rookie
Joined: 21 Apr 2008 Posts: 7
|
Posted: Sun Jun 29, 2008 3:56 pm Post subject: Re: endif, endfereach etc |
|
|
looka wrote: | hi!
i wonder, why this synax is not supported:
Code: | [if sth]do blah[endif] |
it would take really no effort at all to include some case clauses into smarty compiler... |
because supported
Code: | {if $blah}some text{/if} | ... |
|
Back to top |
|
looka Smarty Rookie
Joined: 24 May 2008 Posts: 11
|
Posted: Sun Jun 29, 2008 3:59 pm Post subject: |
|
|
indeed.
but still, in many languagues is a practice to open a tag with a command end end a tag with end+command, not with /+command.
it would not affect neither performance (because needs only 4 or so case conditions in compiler, which gets evaluated only when changing template files... |
|
Back to top |
|
w00t Smarty Rookie
Joined: 21 Apr 2008 Posts: 7
|
|
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
|