adding a callback function in the render template function

It's useful to be able to call some random plugins functions once the template has been generated.