-
Notifications
You must be signed in to change notification settings - Fork 16
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
Marking the end of #-syntax #35
Comments
While that could be changed, it would have performance implications because of developer experience. const sectionEl = h`<section><h1>#welcome</h1> <p>#description</p></section>`;
...
sectionEl.refs.welcome.textContent = `Hello ${name}!`; |
Why not give the user the option? They could do In any case, thanks again for sharing the library! |
Don't get me wrong, but focus of this library is on performance and bundle size constraints. |
If you are looking for a library with very wide support, you should go with https://lit-html.polymer-project.org |
Hi, thanks for providing stage0! I've been testing it out a bit and it seems super fast.
I have a question about the #-syntax. How would I use it with the following template?
I was hoping to use stage0 in a library with user-provided input, so I can't just say something like use
<h1>Hello #name</h1>
and then put the exclamation mark in the nameIt might be nice if a syntax with an ending were used so I could do something like
<h1>Hello {name}!</h1>
. Any chance this is something that might be able to be changed?The text was updated successfully, but these errors were encountered: