Closed brentonhouse closed 4 years ago
+1. Here's another common use case for content blocks that breaks because of this bug:
{{#if (block 'pageTitle')}}
<title>{{block 'pageTitle'}}</title>
{{/if}}
ping on this :)
Is this still an issue with the latest. I remember seeing some cache stuff in there.
Closing out all old issues. If this is still an issue with the latest version please let us know.
This does appear to be fixed, at least on 2.3.0
(didn't test others).
If I am defining a block like this:
And using it like this:
The second usage doesn't work. It seems after the first time it is used, it is cleared out (to free memory).
https://github.com/barc/express-hbs/blob/master/lib/hbs.js#L37