andrewdavey / andrewdavey/cassette

Hogan Template Not Given Enough Info To Invoke Lambdas

Open
#298 2 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C#
Stars
531
Forks
139
PR merge metrics
No merged PRs in 30d

Description

In the HoganCompiler, the stringified functions created by calling:
`return Hogan.compile(template, { asString: true });`

This populates a Hogan.Template instance. This instance only has the `r` functions set from the aforementioned step. However, the `c` property (a reference to Hogan.Complier), the `text` property (the original string), and the `options` aren't provided.

Calling Hogan.Complie on the client will property set all of this for you, but it obviously defeats the purpose of precompiling on the server.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.