Docs - getvariable
07/31/2010: SUIT 2.0.1 and Rulebox 1.1.0 released.
Available Since: Rulebox (1.0.0)
Get a variable based on a split string.
The variable.
<?php
require 'suit.class.php';
require 'templating.class.php';
$suit = new SUIT();
$templating = new Templating($suit);
$templating->var->dict = array
(
'foo' => 'bar'
);
$foo = $templating->getvariable('dict.foo', '.', $templating->var);
// Result: 'bar'
?>
from rulebox import templating
templating.var.dict = {
'foo': 'bar'
}
foo = templating.getvariable('dict.foo', '.', templating.var)
# Result: 'bar'





