Sharpy exposes 3 different types of functions - block functions, inline functions and expression functions.

Block Functions

Block functions, such as foreach, have both a start and end tag with content between the tags.

Expression Functions

Expression functions are similar to block functions, except that the entire opening tag is treated as an expression.

Inline Functions

Inline functions contain a single tag - there is no closing tag or content.

Variable modifiers

Variable modifiers can be applied to any expression. To apply a modifier, specify the expression followed by a | (pipe) and the modifier name. Modifiers can also accept parameters. These parameters follow the modifier name and are separated by a : (colon). Modifiers can also be combined, for example {$title|upper|escape}.

Last edited Feb 17, 2010 at 12:36 PM by JacoPretorius, version 24

Comments

No comments yet.