Open ultimateshadsform opened 1 week ago
I think we can do this. I will try to allocate time to work on this issue in the near future.
Yeah! Would be nice to be able to override the template thing to use a custom one.
I think we should pass something like TemplateProvider interface to the Gonertia constructor like in Fiber: https://docs.gofiber.io/guide/templates/
Yeah! I'm actually using gofiber right now so that would be awesome!
I think we can push this into the backlog of 3.x I also would like to be able to use any http framework such as gofiber or like golang http etc. I have cloned and I'm starting to see if I can come up with something
Right now isn't it hardcoded to use html/template?
How can I use something else like templ?
https://templ.guide/
I did make it working by compiling the template as a string and including raw string such as
@templ.Raw("{{ .inertiaHead }}")
and then passing that to inertia but it would be nice to be able to override the template mechanism so I can use temple directly instead of html/template..Or can I do this already?
Because i.ShareTemplateFunc assumes you use html/template?