When <head>
present in template, content for placeholders like %cayo.css% and %cayo.head% aren't in correct position
#131
Labels
bug
Something isn't working
They all get sucked into
<head>
for some reason. Except%cayo.title%
which for some reason actually gets kicked out.I think JSDOM and/or Vite is doing things to the markup, and to really fix it might be worth manipulating the template markup without using JSDOM or similar, so I know for a fact the HTML structure is only modified by my code.
Initially, I was going to see if I could use acorn to parse the HTML and modify it. There's probably something still to that, or Rich Harris' magic-string
Luckily, most of the time, if you have a you want
<link>
and<script>
elements in there, but not always. The primary use case is actually to use without or , so I'll have to come back to this.(Latest relevant commit: 6dadd99)
The text was updated successfully, but these errors were encountered: