Created
February 17, 2014 20:09
-
-
Save hunterloftis/9058114 to your computer and use it in GitHub Desktop.
This file contains 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 characters
//require('./jsx-modules'); // Enable JSX transforms for require | |
var defer = require('q').defer; | |
//var react = require('react-tools'); | |
function *page() { | |
this.body = yield render({ | |
route: this.path | |
}); | |
} | |
module.exports = page; | |
function render(viewModel) { | |
var d = defer(); | |
//var template = require('./view/test.jsx'); | |
//var html = react.renderComponentToString() | |
d.resolve('test'); | |
return d; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Server: