https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

Conor Gould

10/16/2023, 2:48 AM
does kotlinx.html give the option to output an HTML file?
j

jw

10/16/2023, 2:50 AM
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

Conor Gould

10/16/2023, 2:53 AM
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

ian.shaun.thomas

10/16/2023, 2:54 AM
What are trying to do? Thought you wanted to generate a static site but it sounds like something else now
c

Conor Gould

10/16/2023, 2:55 AM
What i'm trying to do is process the HTML to generate CSS classes for me.
i

ian.shaun.thomas

10/16/2023, 2:55 AM
Oh. Interesting. What's the end goal with that?
c

Conor Gould

10/16/2023, 2:55 AM
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

Todd

10/16/2023, 7:52 PM
You don't need to write it to a file. What format do you want it to be in order to process it?
3 Views