Commit bd9d98a2 by Seldaek

merging changes from 1.1

git-svn-id: svn://dwoo.org/dwoo/trunk@279 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent b2dab7b9
[2009--] 1.1.0
[2009--] 1.1.1
+ Added Dwoo::setTemplate() for testing purposes mostly
[2009-07-18] 1.1.0
! BC Break: Dwoo::initGlobals() is only called once during the Dwoo object
construction. If you had overriden it and need to update global data
before each template is executed you should instead override
......
......@@ -742,6 +742,16 @@ class Dwoo
}
/**
* sets the current template being rendered
*
* @param Dwoo_ITemplate $tpl template object
*/
public function setTemplate(Dwoo_ITemplate $tpl)
{
$this->template = $tpl;
}
/**
* sets the default compiler factory function for the given resource name
*
* a compiler factory must return a Dwoo_ICompiler object pre-configured to fit your needs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment