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

Importing javascript from a .js file #78

Open
c10b10 opened this issue Sep 30, 2017 · 1 comment
Open

Importing javascript from a .js file #78

c10b10 opened this issue Sep 30, 2017 · 1 comment

Comments

@c10b10
Copy link

c10b10 commented Sep 30, 2017

Is it possible to import javascript code from a separate .js file, or is it necessary to write everything in the .haml file?

@daniel-lenz
Copy link

daniel-lenz commented Jun 4, 2020

%script{:type => "text/javascript", :src => "javascripts/yourscript.js"}

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