2016-06-20 17:51 GMT+02:00 Rasmus Schultz <ras...@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.

Reply via email to