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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -