Could it be as simple as enclosing your asset in " " and whatever needs quotes on the inside with ' '?
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
becomes
<link rel="stylesheet" media="screen" href="@routes.Assets.at('stylesheets/main.css')">
That could be causing some problems with parsing