Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use javascript code from separate files in jobs? #24

Open
jotwg opened this issue Nov 23, 2014 · 1 comment
Open

How to use javascript code from separate files in jobs? #24

jotwg opened this issue Nov 23, 2014 · 1 comment

Comments

@jotwg
Copy link

jotwg commented Nov 23, 2014

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!

@ponceta
Copy link

ponceta commented Feb 11, 2015

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants