module for tlak

This commit is contained in:
Galen Wolfe-Pauly 2016-01-25 14:51:28 -08:00
parent e5b8d19274
commit 21fb6583fa
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
main = { window.tree.components.talk = React.createClass({
mount: function() { console.log('mount.') }, render: function() {
unmount: function() { console.log('unmount.') } return (React.DOM.div({}, "rendered."));
} }
})
window.tree.modules.talk = main

View File

@ -1 +0,0 @@
<module path="/home/pub/module/main.js" name="talk" />

1
pub/module/mod/elem.hook Normal file
View File

@ -0,0 +1 @@
;module(path "/home/pub/talk/main.js", component "talk");

View File

@ -29,7 +29,7 @@
;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"); ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js");
;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react.js"); ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react.js");
;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js"); ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js");
;script(type "text/javascript", src "/{dez}/lib/js/urb.js"); ;script(type "text/javascript", src "/~/at/{dez}/lib/js/urb.js");
;script(type "text/javascript", src "/{dez}/lib/js/hoon.js"); ;script(type "text/javascript", src "/{dez}/lib/js/hoon.js");
;script(type "text/javascript", src "/{dez}/pub/tree/main.js"); ;script(type "text/javascript", src "/{dez}/pub/tree/main.js");
::;script(type "text/javascript", src "http://localhost:8000/docs/pub/tree/src/js/main.js"); ::;script(type "text/javascript", src "http://localhost:8000/docs/pub/tree/src/js/main.js");