Grails: Can the asset pipeline be called from a taglib to include javascript dependencies? -


i have taglib has dependency on javascript file. utilize asset pipeline include file within taglib.

is possible?

does asset pipeline have functions can called within taglib, providing similar functionality calling following in view:

<asset:javascript src="application.js"/> 

thank you.

i have not used asset pipeline. can call tag lib another. try

asset.javascript(src: 'application.js') 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -