Docs - execute
07/31/2010: SUIT 2.0.1 and Rulebox 1.1.0 released.
Available Since: SUIT (2.0.0)
Transform a string using rules. The function calls tokens, parse, and walk all in one convenient call.
The transformed string.
Hello, <strong>[var]username[/var]</strong>!
<?php
require 'suit.class.php';
require 'templating.class.php';
$suit = new SUIT();
$templating = new Templating($suit);
$templating->var->username = 'Brandon';
print $suit->execute($templating->rules, $template);
// Result: Hello, <strong>Brandon</strong>!
?>
import suit
from rulebox import templating
templating.var.username = 'Brandon'
print suit.execute(templating.rules, template)
# Result: Hello, <strong>Brandon</strong>!





