Skip to main content
Previous section   Next 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).