-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Rimmel has spent a great deal of effort focusing on the most advanced use cases for templates with async/observable parts and complex structures.
Some excessively "basic" use cases have been deprioritised.
One is the case of a template containing no HTML tags that references any future (promise or observable) value.
The following doesn't work:
const deferredValue = Promise.resolve('world');
document.body.innerHTML = rml`
Hello, ${deferredValue}
`;It works if it's wrapped in at least an HTML tag.
A fix is required in the parser around the correspnding/relevant regular expression.
Link to reproduce
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers