hogan-express
hogan-express copied to clipboard
Mustache template engine for express 3.x. Support partials and layout
Bumps [express](https://github.com/expressjs/express) from 3.4.8 to 4.17.1. Release notes *Sourced from [express's releases](https://github.com/expressjs/express/releases).* > ## 4.17.1 > * Revert "Improve error message for `null`/`undefined` to `res.status`" > > ## 4.17.0 >...
First suggestion for fixing #30 Now it's just a simple running of the function. This could be refactored to have single callback and cleaner structure. Any ideas what should be...
Tweaked the readme to remove a typo and indicate that lambdas need to be defined under the lambdas key.
I declare my lambdas to have two arguments, the enclosed text and the set of options/variables. e.g. See at the bottom for two examples. However, while the "text" is passed...
There hasn't been any commits nor comments from the maintainer for over an year. Even the description still says "Mustache template engine for express 3.x.". :(
The argument doesn;t seem to be coming through. I tried with code like this: ``` js var colorPop = function(c){ console.log('color', c); c = c || '#000000'; var color =...
This works: ``` html {{#yield-styles}} {{/yield-styles}} ``` This doesn't: ``` html {{# yield-styles }} {{/ yield-styles }} ```
If I do something like ``` html {{#myArray}} {{#lambdas.className}}{{.}}{{/lambdas.className}} {{#lambdas.className}}Test This{{/lambdas.className}} {{/myArray}} ``` with myArray being `['First Element', 'Second Element']` then the output will be: ``` html test-this test-this ```...
If you use a lambda inside a loop (or any construct that has a sub-context), you _can't_ access the outer context the way you _normally_ can with hogan. E.g. ```...
There should be a way to provide directly the partial string, instead of loading it from the filesystem. Fe. I have case where the partial is requested elsewhere, but I...