dwoo-project / dwoo

[UNMAINTAINED] php template engine
http://dwoo.org
GNU Lesser General Public License v3.0
167 stars 58 forks source link

how to modify the delimiter {} in dwoo? #33

Closed Lindworm closed 9 years ago

emulienfou commented 9 years ago

Hi, to change delimiters, you need to do something like:

$dwoo = new \Dwoo\Core();

// Create the compiler instance
$compiler = new \Dwoo\Compiler();

// Set new delimiters, here [ & ]
$compiler->setDelimiters('[', ']');

// Output the result and provide the compiler to use
$dwoo->output($tpl, $data, $compiler);
Lindworm commented 9 years ago

nice example, thanks