-
-
Notifications
You must be signed in to change notification settings - Fork 71
Misc
Antonio Pagano edited this page Jan 29, 2018
·
2 revisions
Tags provides other tags that can be useful when building html outside the form context:
This one will generate a <link> useful to add your styles at the top of your page, as an example:
StylesheetTag(Options{"href": "style.css"}).HTML()Generates
<link href="style.css" rel="stylesheet">This one generates a script tag, p.e:
JavascriptTag(Options{"src": "base.js"}).HTML()Generates
<script src="base.js"></script>This function also checks that you only pass one of src or body, meaning that if you pass src, the body will be cleared.