Is it possible to replace php tags to something custom?
Smarty library can assign values and then render them so instead of:
<?php echo $name; ?>
you can just assign value in business logic and then in template just say
{name}
I'd like to make my own function/class/library so when I write { in index.tpl, browser will think its < ?php echo ..
Can somebody point me somewhere?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.