janl / mustache.js

Minimal templating with {{mustaches}} in JavaScript

Home Page:https://mustache.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to set mustache as view engine?

ramseth001 opened this issue · comments

When I did this

app.set("view engine", "mustache");

I got this error

Error: Module "mustache" does not provide a view engine.

Also, I could not find "mustache" in this list from Express website.

mustache.js is not directly compatible with express.js, no.

There has to be something in between, that knows how to work as a view engine for express.js and at the same time knows how to use mustache.js.

I've used something like consolidate.js in the past for this. Whether or not it still does the trick, or if better alternatives has been created, I honestly don't know.

Closing this issue since it's not an issue with mustache.js itself.