We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I created server.js based on the ideas of your code.
var _ld = require('lodash'); var jspm = require('jspm'); var express = require('express'); var fs = require('fs'); var app = express(); app.use(express.static('.')); var sTemplateHTML = fs.readFileSync('app/html/index.html', 'utf8'); jspm.setPackagePath('.'); var server = app.listen(8090, function () { console.log('Server Listen http://localhost:%s', server.address().port); }); app.get("/render", function(req, res) { jspm.import('app/js/pages/mainServer') .then(function(sRenderedHTML) { var _htData = {'mycontent' : sRenderedHTML.default} var sResultHTML = _ld.template(sTemplateHTML)(_htData); res.end(sResultHTML); }, function(err) {console.log("SeverRendering Error :", err)} ); });
thank you :-D
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I created server.js based on the ideas of your code.
thank you :-D
The text was updated successfully, but these errors were encountered: