Contents
Syntax
The syntax for
pathto{option}(string)
@pathto{option}(string)
Description
The
Note: You can optionally specify whether the input parameter is for a
Options
The following options are available for
option | description |
---|---|
input parameter is an absolute path to a file from the project root directory | |
input parameter is a tracked name | |
option | description |
n++ example
Examples of
<a href="@pathto(index)">home</a> <img src="@pathto('assets/images/logo.svg')">
<nav> <ul class="drop_menu"> <li></li> <li class="dm_li"> <a href="@pathto(index)">Home</a> </li> <li class ="dm_li"> <div class="dm_text">Documentation</div> <ul class ="drop_submenu"> <li class="dsm_li"><a href="@pathto(documentation/installing_nift)">Installing Nift</a></li> <li class="dsm_li"><a href="@pathto(documentation/nift_tutorial)">Nift tutorial</a></li> <li class="dsm_li"><a href="@pathto(documentation/nift_commands)">Nift commands</a></li> </ul> </li> <li class ="dm_li"> <a href="@pathto(support)">Support</a> </li> <li></li> </ul> </nav>