Compile templates into server executable
Closed this issue · 3 comments
Not sure if this is possible, but I'm trying to compile the templates/static files into the binary so that when I run the executable elsewhere, I don't also have to figure out how to ship assets - that is to say, it's all included within the compiled go binary.
I've done this before with static assets utilizing go-bindata, but not sure if there is a way to do it for goview.
In my case, I'm specifically utilizing goview with gin (via ginview) but hopefully that doesn't impact the answer.
Great work btw, this package looks awesome!
Use gorice for compile to application.
Awesome I got it working.
For anyone replicating the above, one thing to note is that all partials specified must exist, otherwise you may get a "file does not exist" error, regardless of whether that partial exists in your code or not.
Thanks @foolin for your work on this project and the examples, its super awesome!