Skip to content

Templating engine pages could be improved #2128

@o-t-w

Description

@o-t-w

Description

The Express application generator uses Pug as its default, but it also supports Handlebars, and EJS, among others.
To render template files, set the following application setting properties, in the default app.js created by the generator

For anybody that didn't use the generator, this really isn't a very helpful page. I followed "Installing" which is the first item in the "Getting started" section and now the docs are assuming I've done something else. I am getting the error Error: Module "handlebars" does not provide a view engine. Googling is pointing me towards the express-handlebars package but that seems at odds with what is written here. The docs page here says "it also supports Handlebars" and links to the Handlebars NPM package, not to express-handlebars.

Expectations

Don't assume everyone has used the generator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions