Grails 2.5.0 - Use Asset Pipeline to use createLink in .js file? -


i'm looking add "do want log out?" dialog pops before session ends, , user can click ok ping site , not automatically logged out.

to code this, ideally add <asset:javascript src="session.logout.dialog.js" /> layout.

the issue in including .js file need links controllers in javascript file. i'm not aware of way code links without kind of initialization code in gsp such initlogoutdialog("${createlink(...)}"). asset pipeline plugin allow me way bypass normal restrictions , use createlink if gsp?


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -