1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 05:25:58 +00:00

Full support of the http.FileSystem on all view engines as requested at #1575

Also, the HandleDir accepts both string and http.FileSystem (interface{}) (like the view's fs)
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-05 08:34:09 +03:00
parent 7e6d453dad
commit e1f25eb098
50 changed files with 1613 additions and 1226 deletions

View File

@@ -0,0 +1,2 @@
#footer
p Copyright (c) foobar

View File

@@ -0,0 +1,4 @@
head
title My Site
<!-- script(src='/javascripts/jquery.js')
script(src='/javascripts/app.js') -->

View File

@@ -1,20 +1,7 @@
doctype html
html(lang="en")
head
meta(charset="utf-8")
title Title
body
p ads
ul
li The name is {{.Name}}.
li The age is {{.Age}}.
each _,_ in .Emails
div An email is {{.}}
| {{ with .Jobs }}
each _,_ in .
div
An employer is {{.Employer}}
and the role is {{.Role}}
| {{ end }}
html
include header.pug
body
h1 My Site
p {{ bold "Welcome to my super lame site."}}
include footer.pug