CxScript Elements - cx:include
Updated over a week ago

The cx:include instruction insert a cxscript fragment from a variable or file.

instructie voert een CxScript fragment uit en voegt het resultaat in, in het lopende sjabloon. Het CxScript fragment wordt verkregen via een variabele of bestand.

By using cx:include the same CxScript fragment can be used in multiple templates. Then, when the CxScript fragment needs to be changed this only needs to happen once at only 1 location.

Example 1

<cx:include template="$settings.footerScript" />

Example 2 

<cx:let name="url" value="http://templates.carerix.com/cx/example.html">

<cx:include template="$url.urlContents"/>

</cx:let>

Attribute

Did this answer your question?