Comments (7)
Just waiting more guys to give more advices!
from error.
from error.
Do we need a "bump" of some sort here?
from error.
Better yet. This could just be done using ES6 JS string templating and remove the dependency all together ;-)
I agree
from error.
@coderhaoxin Shall I review this?
from error.
@nfantone review what? (choose the better default templating engine?) Anyway, you are welcome to give help!
Maybe just use string templating
?
from error.
ES6 string templates can't be passed anywhere, they're evaluated in-scope, so consolidate can't support them.
jade/pug seems popular, ejs could work but I haven't noticed many projects indicating they use it lately.
Of course there's always lodash. Lodash templates work pretty much like ES6 string templates, except they are actual strings/templates so they can be passed to consolidate and many people probably already have lodash somewhere in their dependency tree anyways.
from error.
Related Issues (12)
- better default template HOT 4
- stream error HOT 8
- Prevent node's default action when emitting "error"
- Swig throws in strict mode HOT 6
- Swig is not currently maintained HOT 5
- koa-error doesn't depend on the template engine it uses by default HOT 1
- index.js - line 58 - missing comma after 'response: this.response' HOT 1
- Add custom filters and use extend/include the macro/block in view template engine like nunjucks
- using err.expose and NODE_ENV HOT 2
- tests HOT 1
- text/html defaults to text HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from error.