Added possibility to override outputting function in render, i.e. template.print = myoutputfunction.
Merge remote-tracking branch 'origin/master'