ElMassimo / iles

🏝 The joyful site generator
https://iles.pages.dev
MIT License
1.07k stars 31 forks source link

Support useHead `body: true` #191

Closed harlan-zw closed 1 year ago

harlan-zw commented 2 years ago

Is your feature request related to a problem? Please describe.

@vueuse/head recently added support for embedding scripts using body: true to add the script to the end of the body. (commit)

When using this feature in iles, the scripts don't get rendered at all. I'm guessing this is because the app template render is missing the bodyTags variable.

Describe the solution you'd like

Support for the option.

Describe alternatives you've considered

...

Additional context

...

ElMassimo commented 2 years ago

Hi Harlan!

Sounds good, adding support will require a simple change in the renderPage function.

dhruvkb commented 1 year ago

I also need it. Firefox weirdly shows FOUC when there isn't any script at the end of body. Even a blank <script>/**/</script> at tagPosition: bodyClose fixes it.