Created
August 16, 2014 00:24
-
-
Save jxson/e379b6a42f687089ea07 to your computer and use it in GitHub Desktop.
Revisions
-
jxson created this gist
Aug 16, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ var mercury = require('mercury'); var h = mercury.h; module.exports = create; module.exports.render = render; function render(state) { return h({}, [ //... ]) } function create(options) { var state = mercury.struct({ //... }) return { state: state } }