More secure and easy to use templating system for php5.4+