Module: lyria/resource

lyria/resource

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"
DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.2.2 on Sun Jan 26 2014 20:12:45 GMT+0100 (MEZ) using the DocStrap template.