Re: New escaped output operator
| From: | Niklas Keller | Date: | Mon, 20 Jun 2016 16:22:26 +0000 |
| Subject: | Re: New escaped output operator | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94154@lists.php.net to get a copy of this message | ||
2016-06-20 17:51 GMT+02:00 Rasmus Schultz <rasmus@mindplay.dk>:
> > My PHP is augmented with Smarty so I know which are template files and
> > which are program code :)
>
> I name my template files "*.view.php", so I know which is which.
>
> I also head off every file with /** @var MyViewModel $view */ for IDE
> support and inspections with CS/MD/phan, etc.
>
> If you're curious: https://github.com/mindplay-dk/kisstpl
>
> I quit smarty many years ago, and I will not use a template engine,
> ever again - I don't want to write my views in an entirely different
> language in favor of some convenience; especially when that
> convenience comes with another whole slew of inconveniences...
Well, until you want to share your templates in multiple languages like a
version in JS to use it directly in the frontend.