staticdirectory should contain structured data in the YAML, JSON or XML formats. Other files can be stored here for the purpose of rendering them, but only files of these formats can be accessed.
Currently supported extensions are:
Statichelper constant can be accessed from anywhere within your application. This constant acts as a link to the
staticdirectory, allowing you to access data.
static/server-locations.geojsoncan be accessed with:
-being changed to a
static/dependencies/config.jsoncan be accessed with:
static/locales.en.ymlcan be accessed with:
Object#methodsmethod can be used to check for defined sub-directory and file methods for the
staticdirectory is automatically converted into a hash.
Railsframework can be accessed with:
Eucalyptframework can be accessed with: