fabiocaseri/dashing-js

How to use javascript code from separate files in jobs?

Opened this issue · 1 comments

Hi,
the Readme.md talks about putting optional js files into the Lib dir
"Lib — Optional js/coffee files to help out your jobs.",
but I can't figure out how to include/reference them (i.e. the functions etc. provided by them) in my jobs/*.job.js files.

Any hint will be appreciated,

Thx!

You just need to have same name for the job as the name you use for the widget:

Eg. meteo widget:

files in widget
meteo.coffee
meteo.html
meteo.scss

file in job:
meteo.job.js

(from where you can reference other js scripts)