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

Interpolation should NOT work within strings #655

Closed
zaiste opened this issue Sep 9, 2020 · 1 comment
Closed

Interpolation should NOT work within strings #655

zaiste opened this issue Sep 9, 2020 · 1 comment

Comments

@zaiste
Copy link
Contributor

zaiste commented Sep 9, 2020

I'm trying to use Alpine.js along with Boxwood. I define the Alpine.js state like that:

<div x-data="{ open: false }">

This breaks Boxwood as the {/} in interpreted. It should not be interpreted. I'd expect that strings are left as-is. On the other hand, Boxwood should interpret the following syntax

<div x-data={ open: false }>

Note: No string quotes.

This change will align the mental model of Boxwood with React.js

@emilos
Copy link
Contributor

emilos commented Sep 10, 2020

Boxwood follows the html syntax, which allows us to use the .html extension and existing toolchain.

If there's a collision in the start/end tag characters, then most likely you could change default tags either in boxwood or alpine.

Boxwood does not have a way to override the tags yet, e.g. instead of using { and } we could specify {% %} or anything else.

Does that make sense? If yes, then we could add a different issue about adding the possibility to change the tags.

@emilos emilos closed this as completed Sep 18, 2020
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

No branches or pull requests

2 participants