Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

##()##

CSP Compile-time Expression

Synopsis


##(expr)##

Description

The ##()## directive allows you place an expression within the body of a CSP page. This expression is evaluated on the server by the CSP Compiler when the CSP source file is compiled into a %CSP.Page class. The result of the expression becomes part of the executable code for the CSP page.

For example, the following HTML:


This page was last compiled on <B>##($ZDT($H,3))##</B>
Copy code to clipboard

Is equivalent to:


This page was last compiled on <B>2002-01-02 13:51:12</B>
Copy code to clipboard

When the client requests this page, the value sent will be the time when the page was compiled (not when it was requested).