What ratchet hogan.js package to use with express.js?

The hogan.js package, which express provides hjs , however, the last update of the package was a year ago, and the github repo also released issues that were discovered a year ago (albeit not very important).

There is also more than one hogan.js package for express npm temptation, which left me confused!

+7
npm express
source share
1 answer

If you see the hjs source code, then this is only 63 lines, and this requires hogan.js, so this is just a shell to make it work on express.
I used hogan-express , which is also a wrapper for hogan.js (required in package.json), and this is not more than 150.

My point is, to try to find out that hogan.js is an important module, all other modules for integration into express are just wrappers. I think it's worth trying to create a consolidate module that also supports Hogan.

Looking at the stars of githubs (not necessarily a quality indicator), you will see

consolidate (* 548)> express-hogan (* 48)> hjs (* 8)

If you are wondering why hjs was "chosen" for the express command line, the answer is this stretch request. You yourself see what is needed to implement another module. So maybe someone should let me know if hjs is asking problems, and there is a better alternative. It is not difficult to change into express.

+7
source share

All Articles