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

Allow fancy wrapper tags to set custom fallbacks (or do whatever else!) #46

Open
dhartunian opened this issue Jul 20, 2017 · 0 comments

Comments

@dhartunian
Copy link
Contributor

Seems like this is already supported...just gotta write it but maybe could be a larceny-extras thing or something.

For example, we could replace:

<bind tag="fallback">I'm missing ^_^</bind>
<missingTag />

with:

<withCustomFallback>
  <fallback>I'm missing ^_^</fallback>
  <content>
    <missingTag />
  </content>
</withCustomFallback>

which can help with scoping the fallback and make it clear within the XML structure!

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

No branches or pull requests

1 participant