garious/icontrib — Issue #18: add support for pulling JS modules
Author: garious
Created: 2012-01-04 18:50:52+00:00
State: open

Design and implement a JavaScript module format that can be rendered as an HTML page.

For example, user requests: "/widgets/myfav"

widgets/myfav.js contains:

return {
main: function() {
document.createTextNode("hello world");
},
};

returned HTML is:

This should result in the same page:

/widgets/myfav/main

This should pass 'main' parameters 'a' and 'b':

/widgets/myfav/main?a=123&b=345