Skip to content
New issue

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

Default view engine to pug, not jade. #166

Closed
fluxsauce opened this issue Jul 3, 2017 · 6 comments
Closed

Default view engine to pug, not jade. #166

fluxsauce opened this issue Jul 3, 2017 · 6 comments

Comments

@fluxsauce
Copy link

fluxsauce commented Jul 3, 2017

https://pugjs.org/api/migration-v2.html

Due to a trademark issue, the project name has been changed from “Jade” to “Pug” in conjunction with the release of Pug 2.

The package should be updated and the templates should be renamed as well.

Sorry for the potential duplicate; after I submitted this, I noticed #141

Honestly, the deprecation warning is pretty gnarly and since Pug is Jade, I think it's logical to just rip off the bandaid and do it rather than rabbit-holing on alternatives.

@dougwilson
Copy link
Contributor

Hi @fluxsauce I would say this is a duplicate issue for the one you linked to. Certainly replacing jade with pug is up for consideration, but pug still hasn't actually released a stable version yet, and has been constantly in flux, from being in alpha forever, then beta forever and now sitting in RC.

@dougwilson
Copy link
Contributor

Additional information from that issue in why we have not changed it yet is because there are many tutorials out there that say install express-generator and then run it without params and exact to get Jade files and explain things with the .jade template files. I have been emailing those tutorials to either add @... to the install to get a specific generator install, to add --view=jade if they want to keep using Jade or add --view=pug and update their tutorial to reflect Pug. I have gotten quite a few to change so far, as according to the plain in the referenced thread.

@dougwilson
Copy link
Contributor

If you can help get tutorials updated, that would be a big help as well 👍

@fluxsauce
Copy link
Author

fluxsauce commented Jul 4, 2017

If you can help get tutorials updated, that would be a big help as well

@dougwilson can you be more specific, IE which tutorials are you speaking of?

@dougwilson
Copy link
Contributor

There are a lot out there, and I've gotten a lot of them changed and am basically just trying to get the ones that are at the top of the Google search results. For example:

Getting the tutorials that at least turn up at the top of search results has come up multiple times by folks not even involved in Express #141 (comment) and #141 (comment)

@kid1412621
Copy link

kid1412621 commented Oct 18, 2019

how about now? https://www.npmjs.com/package/pug/v/2.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants