Giter Site home page Giter Site logo

Comments (16)

dougwilson avatar dougwilson commented on April 25, 2024

I am 👍 on using something more HTML-like out of the box. ejs may be a better candidate, though.

from generator.

defunctzombie avatar defunctzombie commented on April 25, 2024

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.

Fishrock123 avatar Fishrock123 commented on April 25, 2024

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.

jonathanong avatar jonathanong commented on April 25, 2024

i would just say use the most popular. i think handlebars is the most popular.

from generator.

dougwilson avatar dougwilson commented on April 25, 2024

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.

dougwilson avatar dougwilson commented on April 25, 2024

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.

rlidwka avatar rlidwka commented on April 25, 2024

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.

Fishrock123 avatar Fishrock123 commented on April 25, 2024

What alex said.

(Also, github needs to make their close button not look like a cancel button..)

from generator.

alanjames1987 avatar alanjames1987 commented on April 25, 2024

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.

danielrohers avatar danielrohers commented on April 25, 2024

I prefer hbs. Really, it's just what I use with express.

from generator.

dougwilson avatar dougwilson commented on April 25, 2024

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.

danielrohers avatar danielrohers commented on April 25, 2024

Yep, my opinion is that it uses hbs. Believed it to be easily understood by analyzing the context of the discussion.

from generator.

outsideris avatar outsideris commented on April 25, 2024

hbs +1

from generator.

nickmccurdy avatar nickmccurdy commented on April 25, 2024

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.

defunctzombie avatar defunctzombie commented on April 25, 2024

I am closing this. We don't see to care enough and it probably doesn't matter enough.

from generator.

nickmccurdy avatar nickmccurdy commented on April 25, 2024

👍 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.