Closed scott-coates closed 11 years ago
I was curious about this as well from looking through the code- I couldn't tell if this was the case or not. It definitely reduces the usefulness of compiling and caching the renderers on the server and giving them to the client.
I am using Cassette.NET to precompile Mustache templates on the server with Hogan. Cassette calls
Hogan.Complie('...', { asString: true })
and a template instance is produced.When I try to invoke these lambdas on the client, Hogan will not invoke the lambda function because the template instance mentioned above does not have the
c (Hogan Complier)
,options
, ortext
, properties set.In regard to lambdas, the Hogan docs on GitHub simply state:
This is not the case, the template instance requires not only the compiler. It requires the options and original text to be set as well.