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.
alfonsodev
source share