iris/_examples/view/template_jet_3/views/index.jet
Gerasimos (Makis) Maropoulos e1f25eb098
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)
2020-09-05 08:34:09 +03:00

16 lines
363 B
Plaintext

{{ asset("./myasset.mp3")}}
<br/>
{{ style("my-stle.css") | raw}}
<br/>
{{ 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>