Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda sections do not honor current delimiters #325

Open
agentgt opened this issue Mar 8, 2024 · 0 comments
Open

Lambda sections do not honor current delimiters #325

agentgt opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@agentgt
Copy link
Contributor

agentgt commented Mar 8, 2024

When used as the data value for an Interpolation tag, the lambda MUST be
treatable as an arity 0 function, and invoked as such. The returned value
MUST be rendered against the default delimiters, then interpolated in place
of the lambda.

When used as the data value for a Section tag, the lambda MUST be treatable
as an arity 1 function, and invoked as such (passing a String containing the
unprocessed section contents). The returned value MUST be rendered against
the current delimiters, then interpolated in place of the section.

I believe this is an easy fix as I just accidentally assumed arity 0 rules but what is more desirable is to get the lambda spec tests to run.

@agentgt agentgt added the bug Something isn't working label Mar 8, 2024
@agentgt agentgt added this to the v1.4.0 milestone Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant