New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to customise base HTML index.html
#136
Labels
enhancement
New feature or request
Comments
Hi Dhruv! This is an enhancement that I've been wanting to add for a while now, as it would also make it easier to leverage any Vite plugins that rely on Regarding your use case, it's possible to inject anything you want using Vue but it will always be inside of the If the ASCII is intended to be an HTML comment, you could use <script setup lang="ts">
import { createCommentVNode } from 'vue'
import asciiArtText from '~/ascii-art.txt?raw'
const AsciiArt = createCommentVNode(asciiArtText)
</script>
<template>
<AsciiArt/>
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I want to use an HTML snippet at the top of each of the output pages. In my cases, it's just some ASCII art (not super important) but I could see people wanting to place more useful things there. Currently I cannot add that because iles hides the underlying HTML.
Describe the solution you'd like
Since iles abstracts the base HTML, I cannot do so. Would it be feasible to replace the base HTML with a custom one that uses a slot where iles can inject its output code?
Describe alternatives you've considered
I'm looking for ways to use Vue to inject some text into the HTML. But I might just abandon it and not add the snippet at all.
The text was updated successfully, but these errors were encountered: