> 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...

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to