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

Add value name lookup for lambdas #176

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agentgt
Copy link
Contributor

@agentgt agentgt commented Apr 19, 2024

@samskivert Don't accept this PR yet.

What we (JStachio) are trying to do is solve the i18n problem consistently across JStachio and JMustache. jstachio/jstachio#104

JMustache can almost do the i18n DSL I'm proposing OOB but I need one feature of lookup values by name within a lambda.

This PR makes that possible.

The unit test shows an example of the syntax.

EDIT: I don't think i18n should be builtin to JMustache. This PR is just to make it possible through extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant