To include a template on a page, an HttpHandler can be used to compile and return the result as a piece of JavaScript that also registers the template function under a specifed name.
When adding the script include to the page, the following URL parameters can be specified:
- Controller name
- View name
- Area name (optional)
- Template function name (namespaced e.g.
razorjs.templates.login
HttpHandler must support caching.
To include a template on a page, an
HttpHandlercan be used to compile and return the result as a piece of JavaScript that also registers the template function under a specifed name.When adding the script include to the page, the following URL parameters can be specified:
razorjs.templates.loginHttpHandlermust support caching.