embed templates #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
there are currently issues with accessing the templates directly on the filesystem depending on whether or not we're running unit tests or running the program normally™ (and there is an ugly hack in place to determine that), the overall logic atm also assumes access to the templates at hardcoded places..
this all begs for a rework and the best I can come up with right now is to embed the template files directly into the binary at compile time. that way we can always access them, via some function of sorts, perhaps.
sth like this would do:
tmplSth
could then be realised like this (notice the []byte to string conversion):partly solved in
446f63b59e
solved in
7742642e14
what's left for later is to rework the code-generating part to emitting stuff (
report.tex
) during runtime instead.