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 the deprecated Context Expression Extension feature) <context:if runat="server">JSP custom tag (requires the deprecated Context Expression Extension feature) <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 deprecated Context Expression Extension feature can handle. context:eval-
Language Command ASP.NET server control (requires the deprecated Context Expression Extension feature) <context:eval runat="server">JSP custom tag (requires the deprecated Context Expression Extension feature) <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 deprecated Context Expression Extension feature can handle.At request time, a visitor using Google Chrome will see the text "Greetings, Chrome user!"