Skip to content

Conversation

@davydotcom
Copy link

Users of grails asset-pipeline plugin can simply include js into their app.js by doing:

//= require jquery

$(document).ready(function() {
  console.log("Yay! I have jQuery");
});

@tbarker9
Copy link

tbarker9 commented Aug 4, 2013

👍

@alex88
Copy link

alex88 commented Sep 13, 2013

+1

@bobbywarner
Copy link

@davydotcom Thanks!

bobbywarner added a commit that referenced this pull request Jan 24, 2014
Added support for asset-pipeline inclusion
@bobbywarner bobbywarner merged commit 0952300 into gpc:master Jan 24, 2014
@davydotcom
Copy link
Author

woah forgot about this! :)

@zyro23
Copy link

zyro23 commented Feb 11, 2014

should jquery.js not be placed into a sub-directory of grails-app/assets (e.g. grails-app/assets/javascripts)?

it looks like a direct include via <asset:javascript src="jquery.js" /> does not work for files directly inside the assets directory, but only for files at least one level deeper.

is this observation even correct? thanks, zyro

@davydotcom
Copy link
Author

gooood call, whoops!

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

Successfully merging this pull request may close these issues.

5 participants