Closed ssuvorov closed 9 years ago
The same if I use hulk
to precompile
The hogan.js
readme says:
It's also possible to use HoganTemplate objects without the Hogan compiler present. That means you can pre-compile your templates on the server, and avoid shipping the compiler. However, the optional lambda features from the Mustache spec require the compiler and the original template source to be present.
You can't use lambdas in precompiled templates. The optional lambda feature requires the full hogan compiler and the original template in the browser.
While using precompiled templates you can't use lambdas. Issue could be closed.
I create a simple separate project for this issue: https://github.com/ssuvorov/hogan-issue
After compiling template with everything works fine.
But if create a template with
grunt
(grunt-hogan
,grunt-templates-hogan
, ...whatever), mustache lambdas doesn't work and I got an errorUncaught TypeError: Cannot read property 'compile' of undefined