mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 21:15:56 +00:00
upgrade go-bindata link to the most maintainable one
Former-commit-id: 58d5253b3332acef480d36f0cf716f2ad6b1c09e
This commit is contained in:
@@ -112,7 +112,7 @@ func hi(ctx iris.Context) {
|
||||
|
||||
## Embedded
|
||||
|
||||
View engine supports bundled(https://github.com/jteeuwen/go-bindata) template files too.
|
||||
View engine supports bundled(https://github.com/shuLhan/go-bindata) template files too.
|
||||
`go-bindata` gives you two functions, `Assset` and `AssetNames`,
|
||||
these can be setted to each of the template engines using the `.Binary` function.
|
||||
|
||||
@@ -125,7 +125,7 @@ import "github.com/kataras/iris"
|
||||
|
||||
func main() {
|
||||
app := iris.New()
|
||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
||||
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||
// $ go-bindata ./templates/...
|
||||
// $ go build
|
||||
// $ ./embedding-templates-into-app
|
||||
|
||||
Reference in New Issue
Block a user