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 text curly braces #4

Open
astynax opened this issue Oct 22, 2017 · 3 comments
Open

Add text curly braces #4

astynax opened this issue Oct 22, 2017 · 3 comments

Comments

@astynax
Copy link
Owner

astynax commented Oct 22, 2017

Add text braces

@uhbif19
Copy link
Contributor

uhbif19 commented Aug 12, 2022

@astynax Seems like Lucid does not support things like div>{text1}+div+{text2}, because has only one text argument for each tag. My proposed solution is to wrap text pieces in some tag, like div.

@astynax
Copy link
Owner Author

astynax commented Aug 13, 2022

renderText $  div_ (do {"text1"; div_ ""; "text2"})
"<div>text1<div></div>text2</div>"

It works for me. Or did I misunderstand you?

@uhbif19
Copy link
Contributor

uhbif19 commented Aug 13, 2022

@astynax My bad, I did not know that you can do this.

uhbif19 added a commit to uhbif19/hemmet that referenced this issue Aug 15, 2022
uhbif19 added a commit to uhbif19/hemmet that referenced this issue Mar 1, 2023
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

2 participants