diff --git a/recipes/rice/.gitignore b/recipes/embed-resources/.gitignore similarity index 100% rename from recipes/rice/.gitignore rename to recipes/embed-resources/.gitignore diff --git a/recipes/rice/app/index.html b/recipes/embed-resources/app/index.html similarity index 100% rename from recipes/rice/app/index.html rename to recipes/embed-resources/app/index.html diff --git a/recipes/rice/app/main.js b/recipes/embed-resources/app/main.js similarity index 100% rename from recipes/rice/app/main.js rename to recipes/embed-resources/app/main.js diff --git a/recipes/rice/server.go b/recipes/embed-resources/rice.go similarity index 100% rename from recipes/rice/server.go rename to recipes/embed-resources/rice.go diff --git a/website/content/recipes/embed-resources.md b/website/content/recipes/embed-resources.md new file mode 100644 index 00000000..481259c4 --- /dev/null +++ b/website/content/recipes/embed-resources.md @@ -0,0 +1,20 @@ +--- +title: Embed Resources +menu: + side: + identifier: "embed-resources" + parent: recipes + weight: 14 +--- + +### With go.rice + +`rice.go` + +{{< embed "embed-resources/rice.go" >}} + +### Maintainers + +- [vishr](https://github.com/caarlos0) + +### [Source Code](https://github.com/labstack/echo/blob/master/recipes/rice) diff --git a/website/content/recipes/rice.md b/website/content/recipes/rice.md deleted file mode 100644 index 5c7e65ba..00000000 --- a/website/content/recipes/rice.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: go.rice integration -menu: - side: - identifier: "recipe-rice" - parent: recipes - weight: 14 ---- - -[go.rice](https://github.com/GeertJohan/go.rice) is a library that can be used -to package the assets (js, css, etc) inside the binary file, so your app -can still be a single binary. - -This folder contains a simple example serving an `index.html` file and a simple -`.js` file with go.rice. - -### Server - -`server.go` - -{{< embed "rice/server.go" >}} - -### Maintainers - -- [vishr](https://github.com/caarlos0) - -### [Source Code](https://github.com/labstack/echo/blob/master/recipes/rice)