The Shortcode API s a simple regex based parser that allows you to replace simple bbcode-like tags within a HTMLText or HTMLVarchar field when rendered into a content.
Examples of shortcode tags:
{shortcode}
{shortcode parameter="value"}
{shortcode parameter="value"}Enclosed Content{/shortcode}
Example of escaping shortcodes:
{{shortcode}}
Your shorcode function:
function returnSiteUrl() {
return Option::get('siteurl');
}
Add shortcode http://monstra.org/
Shortcode::add('siteurl', 'returnSiteUrl');