Php - replace question mark sign -
is possible replace php tags custom?
smarty library can assign values , render them instead of:
<?php echo $name; ?>
you can assign value in business logic , in template say
{name}
i'd make own function/class/library when write { in index.tpl, browser think < ?php echo ..
can point me somewhere?
replace {variable} regexps , eval-it
here simple template engine, similar idea
i mean, better use existing templates engines, latte, twig or smarty. not necessary reinventing wheel :)
Comments
Post a Comment