Template directive: Assets

The @assets directive is a shorthand directive that loads static files directly from the assets folder which is a subdirectory of the res/ folder. This directive can also be applied to load grouped static files just like the @Res() method. The example below shows how this directive can be applied in template files
assets()
Example 1 - Loading urls
  @assets('css/file.css') // <link href="{domain}/res/assets/css/file.css"/>
                
Example 2 - Importing resource groups
  @assets(':headers') // import headers 
                
Note: This directive may be removed in future.