1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-22 19:36:00 +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

@@ -1,5 +1,16 @@
{{ asset("./myasset.mp3")}}
<br/>
{{ style("my-stle.css")}}
{{ style("my-stle.css") | raw}}
<br/>
{{ script("my-script.js")}}
{{ script("my-script.js") | raw}}
<!-- view page source: can't add a link as chrome blocks loading local source, instead
do that: -->
<code>
./myasset.mp3
<br/>
&lt;link href="my-stle.css" rel="stylesheet"&gt;
<br/>
&lt;script src="my-script.js">&lt;/script&gt;
</code>