Last 12 weeks · 0 commits
1 of 6 standards met
Repository: tj/haml.js. Description: Faster Haml JavaScript implementation for nodejs Stars: 409, Forks: 42. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 4, open issues: 14. Last activity: 3y ago. Community health: 28%. Top contributors: tj, saschagehlich, bkaney, tricknotes, chowey, ciaranj, cjoudrey, hammerdr, blakmatrix, ForbesLindesay and others.
The documentation regarding HAML filters was incorrect as you should not return a string, but push to an array.
Because Express 3 expects the engine function to be and the current state of renderFile includes encoding as a parameter, the example in the README.md will not work. The only way to use hamjs with Express 3 right now is to use Consolidate.js. Suggestions: Drop encoding as a parameter to renderFile to match similar behavior of ejs or jade. State in README.md that hamljs will only work with Express when using Consolidate.