martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

Allow to use predefine compiled template from external #22

Open 0x5487 opened 10 years ago

0x5487 commented 10 years ago

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