Added a render prefetch-callback

The render function now can take a function as second argument. That
function is called, as soon as the template is cached. No rendering is
done in this case.