Skip to content

Commit c13fd84

Browse files
committed
fix #1450 and continue on implementing 1449
Former-commit-id: 617f64d061e88f050a443ea1751fa244164656c5
1 parent 09a410c commit c13fd84

File tree

24 files changed

+578
-141
lines changed

24 files changed

+578
-141
lines changed

_examples/view/embedding-templates-into-app/bindata.go

Lines changed: 17 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_examples/view/template_jet_1_embedded/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import (
1111
"github.com/kataras/iris/v12"
1212
)
1313

14+
// $ go get -u github.com/go-bindata/go-bindata/...
15+
// $ go-bindata ./views/...
16+
// $ go build
1417
func main() {
1518
app := iris.New()
1619
tmpl := iris.Jet("./views", ".jet").Binary(Asset, AssetNames)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
doctype html
22
html
3-
include templates/header.pug
3+
include header.pug
44
body
55
h1 My Site
66
p {{ bold "Welcome to my super lame site."}}
7-
include templates/footer.pug
7+
include footer.pug

_examples/view/template_pug_3/bindata.go

Lines changed: 269 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_examples/view/template_pug_3/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ package main
22

33
import "github.com/kataras/iris/v12"
44

5+
// $ go get -u github.com/go-bindata/go-bindata/...
6+
// $ go-bindata ./templates/...
7+
// $ go build
58
func main() {
69
app := iris.New()
710

8-
tmpl := iris.Pug("./templates", ".pug")
11+
tmpl := iris.Pug("./templates", ".pug").Binary(Asset, AssetNames)
912

1013
app.RegisterView(tmpl)
1114

_examples/view/template_pug_3/templates/index.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extends templates/layout.pug
1+
extends layout.pug
22

33
block title
44
title Article Title

0 commit comments

Comments
 (0)