dashing-js icon indicating copy to clipboard operation
dashing-js copied to clipboard

How to use javascript code from separate files in jobs?

Open jotwg opened this issue 10 years ago • 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!

jotwg avatar Nov 23 '14 08:11 jotwg

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)

ponceta avatar Feb 11 '15 06:02 ponceta