Re: Block functions
| From: | Andrei Zmievski | Date: | Tue, 26 Mar 2002 15:29:00 +0000 |
| Subject: | Re: Block functions | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3352@lists.php.net to get a copy of this message | ||
On Tue, 26 Mar 2002, Anders Janson wrote:
> Yes.
> Example 1:
> {myform name="blabla"}
> {my_checkbox name="foo"}
> {/myform}
>
> The Javascript for the input (checkbox) needs to know the name of the form it is
> located in.
That would require keeping track of attributes of custom functions as
well as block functions. And what about built-in tags like {section} and
other ones?
-Andrei
For society, it's probably a good thing that engineers value function over
appearance. For example, you wouldn't want engineers to build nuclear power
plants that only _look_ like they would keep all the radiation inside.
(Scott Adams - The Dilbert principle)