Allow using partials as templates

Added the function wrapper for partials to allow using partials as templates