-
Templix Template Engine - RedCat PHP Framework #plugin-img
https://fr.redcatphp.com/templix-template-engine#plugin-img
include The include markup will compile a sub-template in a way that make it included by regular include from caller compiled template. It's not possible to work on the included template
DOM
from caller
DOM, but the included template can access to caller
DOM
and work on it. <incude "path/to/my/included-template.tml">
-
Templix Template Engine - RedCat PHP Framework #plugin-inclu
...
https://fr.redcatphp.com/templix-template-engine#plugin-incl
...
incorpore The incorpore markup will completely incorpore a sub-template in the current template workflow. It's possible to work on the incorpored template
DOM
from caller
DOM
and the incorpored template can access to caller
DOM
and work on it too.
-
Templix Template Engine - RedCat PHP Framework #plugin-write
https://fr.redcatphp.com/templix-template-engine#plugin-writ
...
...closing markup, self closing or implicit self closed. All
DOM
which is loaded before is accessible. You can also implements the loaded method which is triggered when the whole document is loaded and so accessible from the method. From the class you can access the attributes of the markup and all
DOM
with the markup object methods. class Mymarkup extends \RedCat\Templix...
-
Templix Template Engine - RedCat PHP Framework #plugin-img
https://redcatphp.com/templix-template-engine#plugin-img
include The include markup will compile a sub-template in a way that make it included by regular include from caller compiled template. It's not possible to work on the included template
DOM
from caller
DOM, but the included template can access to caller
DOM
and work on it. <incude "path/to/my/included-template.tml">
-
Templix Template Engine - RedCat PHP Framework #plugin-inclu
...
https://redcatphp.com/templix-template-engine#plugin-include
incorpore The incorpore markup will completely incorpore a sub-template in the current template workflow. It's possible to work on the incorpored template
DOM
from caller
DOM
and the incorpored template can access to caller
DOM
and work on it too.
-
Templix Template Engine - RedCat PHP Framework #plugin-write
https://redcatphp.com/templix-template-engine#plugin-write
...closing markup, self closing or implicit self closed. All
DOM
which is loaded before is accessible. You can also implements the loaded method which is triggered when the whole document is loaded and so accessible from the method. From the class you can access the attributes of the markup and all
DOM
with the markup object methods. class Mymarkup extends \RedCat\Templix...
-
Templix Template Engine - RedCat PHP Framework #plugin-end
https://fr.redcatphp.com/templix-template-engine#plugin-end
...suffix file name with ".xtml" by default and if it was left empty the default wrapper file will be ".xtml". It will contain other specifics elements that will work on
DOM
like: write, append, prepend, after, before, remove, replace, merge, premerge, submerge, attr, attrprepend, attrappend, css, js. <extend "header.xtml"> <append "title"> - RedCat<...
-
Templix Template Engine - RedCat PHP Framework #plugin-end
https://redcatphp.com/templix-template-engine#plugin-end
...suffix file name with ".xtml" by default and if it was left empty the default wrapper file will be ".xtml". It will contain other specifics elements that will work on
DOM
like: write, append, prepend, after, before, remove, replace, merge, premerge, submerge, attr, attrprepend, attrappend, css, js. <extend "header.xtml"> <append "title"> - RedCat<...
-
Templix Template Engine - RedCat PHP Framework #features
https://fr.redcatphp.com/templix-template-engine#features
Features recursive extend CSS3 Selectors (jQuery/sizzle like) to work on
DOM
at compilation time , PHP compliant onCompile binder, PHP short-open-tag syntax support even if not enable in php.ini PHP syntax elements ported to HTML5, HTML5/XML syntax extended Templix syntax, As fast as simple include when compiled Possibility to build your own markup based logic language...
-
Templix Template Engine - RedCat PHP Framework #html5-plugin
...
https://fr.redcatphp.com/templix-template-engine#html5-plugi
...
onCompile binder You can bind to templix some callback to trigger when the document is almost compiled and all its
DOM
is accessible.$templix->onCompile(function($templix){ $templix->find('footer a')->addClass('footer-link');});
-
Templix Template Engine - RedCat PHP Framework #native-plugi
...
https://fr.redcatphp.com/templix-template-engine#native-plug
...
...without any change to do in your templates ! The parser support the most flexible syntax than is HTML5 with some Templix addons pecificity like shortcut value but, by dint of
DOM
conversion to PHP object, the output can be changed in XML very easyly. According to W3C specification, the following elements are implicitly self-closed: area, base br, col command...
-
Templix Template Engine - RedCat PHP Framework #method-foot
https://fr.redcatphp.com/templix-template-engine#method-foot
tmpAttr The attr method is a getter or setter for accessing temporary attributes. Because of extend or apply, the
DOM
can be re-compiled to string and re-parsed. In this processus, all unvisible meta-data you can add to your object, like with the data method, will be wiped. So, there is a convention for passing meta-data in...
-
Templix Template Engine - RedCat PHP Framework #method-attr
https://fr.redcatphp.com/templix-template-engine#method-attr
data The data method is a getter or setter for accessing meta-data unvisible attributes. Because of extend or apply, the
DOM
can be re-compiled to string and re-parsed. In this processus, all unvisible meta-data you can add to your object, like with the data method, will be wiped. To work around this behavior use tmpAttr instead...
-
Templix Template Engine - RedCat PHP Framework #features
https://redcatphp.com/templix-template-engine#features
Features recursive extend CSS3 Selectors (jQuery/sizzle like) to work on
DOM
at compilation time , PHP compliant onCompile binder, PHP short-open-tag syntax support even if not enable in php.ini PHP syntax elements ported to HTML5, HTML5/XML syntax extended Templix syntax, As fast as simple include when compiled Possibility to build your own markup based logic language...
-
Templix Template Engine - RedCat PHP Framework #html5-plugin
...
https://redcatphp.com/templix-template-engine#html5-plugins
onCompile binder You can bind to templix some callback to trigger when the document is almost compiled and all its
DOM
is accessible.$templix->onCompile(function($templix){ $templix->find('footer a')->addClass('footer-link');});