Ins

Back to Hell-licensed code

Ins is yet another PHP template system (TS) with its templates beeing HTML5 valid code. The functionality is inspired by XSL and Latte, implementing the template tasks with custom elements and attributes. HTML5 doesn't allow to add new elements, namespaced or not. Because of this greediness, Ins stole the element <ins>, which was almost never used anyway and is semantically appropriate to insert contents into the template, hence the name "Ins". The ins tag has similar meaning to xsl: tags, and ins- attributes can be placed into any tag, similarly to Latte approach. All ins syntax is removed after the transpilling process and the HTML with contents is the output.

Installation

include "ins.php"; $code = file_get_contents("yourTemplate.html"); echo ins($code);

Ins Tutorial