Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tip to have CSS with Play Twirl, if SASS isn't powerful enough for you...
def css = Action {
val css: TxtFormat.Appendable =views.txt.css()
inside HTML
<link rel="stylesheet" href="@routes.HomeController.css()"/>
inside css.scala.txt, the css. with @ escaped to @@ (twirl likes @)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment