Permalink
Browse files

Refactor asset bundling

Before this commit, two distinct helper tools (genbundled and gentmpl)
were used to perform a somewhat domain-specific bundling.

After this commit, a slightly modified version of
github.com/dsymonds/goembed is used to bundle, in a more efficient
way, all files within assets/.

This commit also lays the groundwork for asset injection, which is
related to issue #3
  • Loading branch information...
stapelberg committed Jan 13, 2017
1 parent 4d06892 commit faddbc067ffd12b3c36c60dd44a348180f12022c
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,3 @@
package bundle

//go:generate sh -c "go run goembed.go -package bundled -var assets assets/header.tmpl assets/footer.tmpl assets/style.css assets/manpage.tmpl assets/manpageerror.tmpl assets/contents.tmpl assets/pkgindex.tmpl assets/index.tmpl assets/faq.tmpl assets/Inconsolata.woff assets/Inconsolata.woff2 assets/openlogo-50.svg assets/opensearch.xml assets/Roboto-Bold.woff assets/Roboto-Bold.woff2 assets/Roboto-Regular.woff assets/Roboto-Regular.woff2 > internal/bundled/GENERATED_bundled.go"

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit faddbc0

Please sign in to comment.