Contents
Syntax
The syntax for
jsinclude{options}(absolute-path)
@jsinclude{options}(absolute-path)
Description
The
<script src="relative-path" options></script>
The
Note: Another good way to include a javascript file, where an error is thrown if the file does not exist, is:
<script src="@pathtofile(absolute-path)"></script>
Options
Anything added as an option to a
f++ example
Example of
jsinclude("site/assets/js/jquery.min.js")
n++ example
Example of
@jsinclude("site/assets/js/jquery.min.js")