$newTemplate = vB_Template::create('someTemplate'); $newTemplate->register('variable1', $somearray); $newTemplate->register('variable2', $variabletwo);$myvariable = $newTemplate->render();
vB_Template::preRegister('TEMPLATE', array('myvariable' => $myvariable));