@(webJarAssets: WebJarAssets)
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' href='@routes.WebJarAssets.at(webJarAssets.locate("css/bootstrap.min.css"))'>
</head>
<body>
</body>
</html>
This is making only using templates more complicated , since you need to pass another parameter. And you probably use all this WebJarAssets at whole application (probably not only in REST service), so you will pass this as parameter to every template you have. Imagine having another parameters , then how many parameters you pass around templates ,even if you did not had to in past. I really do not like this approach making things more complicated and unreadable..
Is there any better approach? Calling action with every controller , which will put webjars in context and then in particular view reading it from context is only I managed to come up with, but still making things more complicated even if they do not have to be...