Template directive: mapp

The @mapp directive is a shorthand directive that returns any relative url supplied with a parent directory of res/main. This directory is where the core static resources of spoova framework is located. This makes it easier to link to static resource files within the directory. The example below shows how the directive can be applied in template files.
mapp()
  <img src="@mapp('images/image.jpg')"> 
                
Resolved as :
 <img src="{domain}/res/main/images/image.jpg"/>
                
Note: This directive internally uses the domlink() function. Hence, it keeps track of the last url supplied.