$testVarName = 'testValue'; $templater = vB_Template::create('mycustomtemplate'); $templater->register('testVarName', $testVarName); $customtemplate = $templater->render(); vB_Template::preRegister('MEMBERINFO', array('mycustomtemplate' => $customtemplate));