visionmedia / connect-render Goto Github PK
View Code? Open in Web Editor NEWTemplate Render helper for connect: res.render(view, options).
License: MIT License
Template Render helper for connect: res.render(view, options).
License: MIT License
这样可以去掉moment依赖了。
Hi @fengmk2 👋 and other repo owners,
I'm wondering who the current maintainer of this repo is as a point of contact for changes.
2013-04-30 10:54:57.008 nodejs.ErrorException: Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (http.js:673:11)
at ServerResponse.res.setHeader (/home/admin/alimovie/target/alimovie/node_modules/connect/lib/patch.js:59:22)
at send (/home/admin/alimovie/target/alimovie/node_modules/connect-render/lib/render.js:103:7)
at /home/admin/alimovie/target/alimovie/node_modules/connect-render/lib/render.js:159:7
at _render_tpl (/home/admin/alimovie/target/alimovie/node_modules/connect-render/lib/render.js:38:3)
at /home/admin/alimovie/target/alimovie/node_modules/connect-render/lib/render.js:96:5
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
pid: 25453
domainThrown: false
Host: v065117.cm4
URL:
Data: ""
2013-04-30 10:54:57.008
var ejs = require('ejs');
ejs.open = '{%';
ejs.close = '%}';
var render = require('connect-render');
这段代码只有在依赖结构如下的时候才能正常工作:
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
如果是
├─┬ [email protected]
│ └── [email protected]
│ └── [email protected]
就不能正常工作。open的设置无效。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.