Comments (16)
I am 👍 on using something more HTML-like out of the box. ejs
may be a better candidate, though.
from generator.
Cool. I am a not a fan of ejs (think it is a bit strange and too open ended when it comes to allowing code in template) but can be convinced otherwise.
from generator.
I prefer jade. With the entire "mean stack" thing, I'd say it is popular enough.
If nothing else, I guess one of those? There's also http://mozilla.github.io/nunjucks/, which may be popular enough to consider supporting in the future.
FWIW I'd say hbs sounds the most popular? idk.
from generator.
i would just say use the most popular. i think handlebars is the most popular.
from generator.
The main reason I suggested ejs is because compared to jade, hbs has like no logic abilities. In Perl, the frameworks like Mojolicious use a similar templating language called epl by default, which is exactly like ejs, but of course Perl code instead of Javascript.
Yes, ejs and the like do not provide the best separation of concerns, but it's one of the reasons people reach for jade over hbs anyway. To me, ejs is like jade, but lets you use actual HTML.
from generator.
If I were to choose between jade and hbs, though, I would say hbs (in fact, it is the only templating I use with express anyway).
from generator.
I prefer jade. With the entire "mean stack" thing, I'd say it is popular enough.
+1
We are supposed to teach people good things, right? If they don't like to learn new language, they can always change it in command-line.
But by default it should output the best code node.js community came up with, and right now that's jade imho.
from generator.
What alex said.
(Also, github needs to make their close button not look like a cancel button..)
from generator.
I think ejs or hbs are the most standard looking for someone coming from other languages and most standard to use in front end JavaScript. Ruby has erb, Perl has epl, and PHP's termplating syntax is very similar to ejs.
I would vote for ejs just because it's concepts and syntax are the most cross language compatible, a plus for anyone wanting to convert project's over to Node.
But, ejs and hbs are more compatible with regular HTML than Jade, so either is a great choice.
from generator.
I prefer hbs. Really, it's just what I use with express.
from generator.
Just so everyone knows: this is not about what templating engine you prefer, but what templating engine a brand new person to express should start out with.
from generator.
Yep, my opinion is that it uses hbs. Believed it to be easily understood by analyzing the context of the discussion.
from generator.
hbs +1
from generator.
I'm for keeping the default templating engine as Jade. Jade is simple (at least in my opinion), though it does have a bigger learning curve than just HTML alone. However, given how popular Jade is, how much it boosts productivity, and how fast and flexible it is, I think it's reasonable to encourage new users to use it. The --ejs
option is still there if they aren't comfortable with Jade.
By the way, HTML is technically valid Jade in most cases.
from generator.
I am closing this. We don't see to care enough and it probably doesn't matter enough.
from generator.
👍 I think it could help to simply add an extra note to the readme about how --ejs
might be easier for beginners if they don't want to use a fancier templating language.
from generator.
Related Issues (20)
- tanks
- Opinionless, minimalist variant HOT 4
- Should the node version < 6 be opted out in travis.yml ? HOT 3
- bash: express: command not found... HOT 3
- fix lodash vulnerability HOT 2
- is this still maintaining? HOT 1
- CORS HOT 1
- Include .gitignore file as part of the initial project setup HOT 1
- myapp HOT 1
- Instructions on how to compile the css engines HOT 4
- option to generate mjs HOT 1
- Recommending nodemon instead of npm start.
- Sass Generator not working out of the box HOT 1
- To bump `pug` to latest >3.x.x
- To automate maintenance of dependency versions in `express-cli.js` HOT 3
- EACCES: permission denied HOT 1
- Dire need for a major update/overhaul HOT 5
- Is express-generator is deprecated or out of maintenance? HOT 1
- Running tests locally fails
- sass instead of node-sass
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 generator.