Open niklasgrewe opened 1 year ago
Note: it works when i am using webc:nokeep
<script webc:type="js" webc:root>
`<link webc:nokeep @attributes>`;
</script>
This seems like a bug to me, given #107 shipped in v0.10.0.
What happens if you remove webc:root
?
What happens if you remove webc:root?
it works and i can access the attributes too...
<script webc:type="js">
console.log(href); // /images/favicon.svg etc.
`<link @attributes>`;
</script>
interesting, i always thought i had to set webc:root
to get the attributes, has that changed?
I’m not sure if it answers your question but I would not have expected webc:root
to be required to use @attributes
i created a
link.webc
component like this:my
<head>
inside mybase.webc
layout looks like this:but now i get the
<link>
tags twice:is this a bug? I am using
@11ty/eleventy: 2.0.1
and@11ty/eleventy-plugin-webc: 0.11.0