Re: Square brackets tags

From: Date: Tue, 19 Oct 2004 21:17:26 +0000
Subject: Re: Square brackets tags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199828@lists.php.net to get a copy of this message
I was just reading a little on this. This is the way you build a template system. Smarty uses "{ }". Maybe you could check out the Smarty page and get an idea. <http://smarty.php.net/> Or maybe you could just use Smarty, you can change the "{ }" to anything you want. > Hi All, > > I need to write a PHP extension or a PHP template system (this is the > question) to parse some commands enclosed in square brackets inside web > pages. Please note that the commands are in the form [command1] and not > <?php [command1] ?>. > I want use PHP because these commands needs to be remapped with a "web > oriented" language. > > Is it technically possible to remap these square brackets tags to php? > And if yes, what is the best way? A custom template system or a C PHP > extension? Get Smarty. If you get into Smarty could you let us know how 'steep' it was?

« previous php.general (#199828) next »