1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-24 03:16:14 +02:00
This commit is contained in:
Carlos Alexandro Becker 2015-10-17 22:05:32 -03:00
parent dfae5e676a
commit 630eb193b9
6 changed files with 20 additions and 27 deletions

View File

@ -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)

View File

@ -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)