Go API support #979
adonespitogo
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I can't really guarantee the API surface will remain stable but you can use the APIs that exist today. Take a look at the That's all you need to use templ programatically. It's what templ uses internally itself: templ/cmd/templ/generatecmd/eventhandler.go Line 220 in 079e286 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to programatically use this library in my project using Go API similar to esbuild Go API . Right now, I need to spawn a child process that executes
templ generate
to generate the go files. It would be nice to be able to use this library using pure go without the overhead of spawing a seprate process.Beta Was this translation helpful? Give feedback.
All reactions