mirror of
https://github.com/labstack/echo.git
synced 2025-01-24 03:16:14 +02:00
cr
This commit is contained in:
parent
dfae5e676a
commit
630eb193b9
20
website/content/recipes/embed-resources.md
Normal file
20
website/content/recipes/embed-resources.md
Normal 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)
|
@ -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)
|
Loading…
x
Reference in New Issue
Block a user