Render function for templates

As per http://community.mybb.com/thread-157882.html