does kotlinx.html give the option to output an HTM...
# multiplatform
c
does kotlinx.html give the option to output an HTML file?
j
You can write to any
Writer
or
Appendable
per the README. So that means you can wrap a
Writer
around a file stream, or render to a
StringBuilder
and then write that string to a file.
c
so I would have to somehow write it to a file to process it, and then somehow link to that file in the code? Sounds like I would need a compiler plugin.
I'm using ktor btw.
What i'm trying to do is process the HTML to generate CSS classes for me.
i
What are trying to do? Thought you wanted to generate a static site but it sounds like something else now
c
What i'm trying to do is process the HTML to generate CSS classes for me.
i
Oh. Interesting. What's the end goal with that?
c
Add Tailwind CSS support.
👍 1
As an additional dependency, of course.
Any ideas? I've been stuck for days 😂
I could potentially bundle a "custom" html dsl...
t
You don't need to write it to a file. What format do you want it to be in order to process it?