Context Engine Cartridge custom tags, server controls and TCDL tags
You can include code in your Web page that interacts with aspect properties.
context:if-
Language Command ASP.NET server control (requires Context Expression Extension) <context:if runat="server">JSP custom tag (requires Context Expression Extension) <context:if>TCDL tag <tcdl:if>Attribute name Description expressionA valid CEL expression Use this tag to check if an expression evaluates to
trueor tofalse, and to render or not render content based on that fact.For example, to only show a link to your app to visitors accessing your site from a mobile device, include the following in your template code:
<tcdl:if expression="device.mobile"> Instead of using our Web site, why not <a href="http://www.example.com">download our app</a>? </tcdl:if>When publishing to JSP or ASP.NET, this tag is transformed into a
context:iftag that the Context Expression Extension can handle. context:eval-
Language Command ASP.NET server control (requires Context Expression Extension) <context:eval runat="server">JSP custom tag (requires Context Expression Extension) <context:eval>TCDL tag <tcdl:eval>Attribute name Description expressionA valid CEL expression Use this tag to render the result of the expression specified in its
expressionattribute.For example, you can include the following in your templating code:
<tcdl:eval expression="'Greetings, ' + browser.model + ' user!'"/>When publishing to JSP or ASP.NET, this tag is transformed into a
context:evaltag that the Context Expression Extension can handle.At request time, a visitor using Google Chrome will see the text "Greetings, Chrome user!"