HTML Commands

[? HTML_CMDS b ?] [% b %]This is bold[% end %] [% b; 'This is bold'; end %] [% b { 'This is bold' } %] [% b 'This is bold' %] --EOF--
look inside...
Thus Spake Andy:

The flexibility to load commands on demand allows us to write all sort of interesting domain- or application-specific commands - the kind of things that don't really warrant being in a generic template language but are mighty useful nonetheless.

The HTML_CMDS control is a quick hack I implemented to define some HTML commands (NOTE: I'm planning to merge this into COMMANDS but I need to figure out the best way to do that first). This example shows us loading the b command (we're actually generating the command on demand, but the details aren't important). The b command generates <b>...</b> tags. It's a block command so we can use it in any of the TT3 block styles or as a prefix on a single expression.