Allow to use predefine compiled template from external

we need to use different template files from different location depends on querystring parameter.  For example, http://www.yourdomain.com/?theme=dark , we would like to maintain the template instance by our self and pass it to render middleware.  Hope it helps.

Thank you