Closed bramkragten closed 2 years ago
You should probably be doing:
html`<a href=${`/?query=${query}`}>Link</a>`;
so lit understands you're interpolating a value. im not sure how lit deals with trying to interpolate part of a value like that, maybe it understands it fine..
as for the error though regardless, its the html parser we use giving that. ill take a look either way when i get chance
+1
It looks like lit-html/element allows this and so it seems correct:
yup sorry i took so long to get back to this, ill try have a look into this weekend.
you're right, it should work fine
When you have a template like:
It will give the following errors: