Tip to have CSS with Play Twirl, if SASS isn't powerful enough for you...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def css = Action { | |
val css: TxtFormat.Appendable =views.txt.css() | |
Ok(css).as("text/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