PlayFramework 2.3.7 webjar bootstrap integration not working

135 views
Skip to first unread message

Georg Heiler

unread,
Jan 18, 2015, 6:49:38 PM1/18/15
to play-fr...@googlegroups.com
HI,
I am new to play and just working on the integration with bootstrap via a webjar. (http://stackoverflow.com/questions/28015979/play-framework-bootstrap-webjar-integration-not-working) but it does not work (in 2.3.7) as described here :

via:
<link rel='stylesheet' href='@routes.WebJarAssets.at(WebJarAssets.locate("css/bootstrap.min.css"))'>

because: WebJarAssets controller not found

can someone explain me what is wrong in my setup?

Thank you very much for help.
Georg

Marius Soutier

unread,
Jan 19, 2015, 3:46:20 AM1/19/15
to play-fr...@googlegroups.com
You simply use the Assets controller to access WebJars, they are extracted by Play automatically to the target/lib folder. You can refer to them via @routes.Assets.at(“lib/bootstrap/css/bootstrap.css”).

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Georg Heiler

unread,
Jan 19, 2015, 4:18:23 AM1/19/15
to play-fr...@googlegroups.com
thank you very much !!
Reply all
Reply to author
Forward
0 new messages