- Source:
Requires
- module:path
Members
-
<static> path :Object
-
Type:
- Object
- Source:
Methods
-
<static> name(filename, type) → {String}
-
Returns the relative filename to an asset by filename and type
Parameters:
Name Type Description filename
String The filename
type
String The type of the asset
- Source:
Returns:
- Type
- String
Examples
Resource.name('mything.json'); // => "assets/mything.json"
Resource.name('myimage.png', 'image'); // => "assets/images/myimage.png"