Javascripts
Version: - stringSummary
Returns links to JavaScript files associated with the current page.
Settings
The value is generated automatically based on various Dynamicweb settings.
E.g. (Stylesheet tab > Stylesheet > Page > Template tab > Include panel > JavaScript field)
Remarks
This tag can be used on master templates.
(File Manager tab > Templates folder > Master folder)
The value is returned as a HTML code snippet containing <script>
tags.
Examples
Outputting the template tag
@GetString("Javascripts")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Javascripts"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Javascripts");
}
Outputting the template tag
<!--@Javascripts-->
Check if string has a value
<!--@If Defined(@Javascripts)-->
Let's output this tag here: <strong><!--@Javascripts--></strong>
<!--@EndIf(@Javascripts)-->