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

Allow JavaScript Code in Configuration #80

Closed
hagenburger opened this Issue Aug 10, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@hagenburger
Member

hagenburger commented Aug 10, 2014

Depending on if the line ends on “.js” or not, either <script src="xyz.js"></script> or <script>someJavaScript()</script> should be generated:

javascript-before:
  - 'modernizr.js'
  - 'alert("Hello World!")'
javascript-after:
  - 'http://code.jquery.com/jquery-2.0.3.js'
  - 'application.js'
  - 'alert("Goodbye World!")'

A real life example might be:

javascript-before:
  - '//use.typekit.net/abcd12efgh.js'
  - 'try{Typekit.load();}catch(e){}'

@hagenburger hagenburger added this to the v1.1.0 milestone Aug 10, 2014

@hagenburger

This comment has been minimized.

Member

hagenburger commented Aug 10, 2014

Done in v1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment