Introspection on templates

From: Date: Sat, 11 Sep 2004 12:14:15 +0000
Subject: Introspection on templates
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11803@lists.php.net to get a copy of this message
Hello, I'm considering Smarty to use on a web application I'm putting together, and I had a question about how I might take this: <html> <body> Name: {$name}<br> Address: {$address}<br> </body> </html> And turn it into this: <form action="./">
    <input type="text" name="name"/>
    <input type="text" name="address"/>
    <input type="submit"/>
</form> ...without prior knowledge of the .tpl file. I understand this could get complicated, should there be control structures like looping or if/else, but I'm just curious if this has been done, or perhaps it hasn't and this is a bad idea? Thanks, -Dan I'm fairly new to Smarty

« previous php.smarty.general (#11803) next »