Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

Response.sendJs

Response.sendJs($jsOrList)

Description

Send a JS TypeString as an application/javascript document.

Also accepts a list of JS TypeStrings that will be wrapped in self-executing functions.

Response.sendJs(myJs());

template myJs() {
    console.log('Hello World!');
}