Twirl
twirl-in-scala-standalone-example
Twirl | twirl-in-scala-standalone-example | |
---|---|---|
1 | 1 | |
552 | 1 | |
0.4% | - | |
8.7 | 0.0 | |
6 days ago | over 3 years ago | |
Scala | Scala | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Twirl
-
On the future of Play Framework
You could quibble with this description, but Play is an opinionated packaging of several technologies—all of which could be used alone or cobbled together by hand. Out of the box, you get tooling that compiles web assets through a pipeline (sbt-web, with features like versioning through sbt-digest), a powerful templating language (Twirl), a routing DSL, request handlers (Actions), of course, a non-blocking HTTP stack (Akka HTTP), and a few other bells and whistles useful to building full-stack web applications. These are a lot of parts to maintain together. It's a considerable challenge to provide so much under the auspice of one project. Play's combination of all these parts also necessitates specific ways to build your web application or service—which, I think, a lot of developers don't like, which has contributed to it falling out of favor.
twirl-in-scala-standalone-example
-
How to use Scala Twirl template engine standalone, without Play Framework
Scala Twirl template engine can be use in standalone applications, without the need for Play Framework. I personally like to use it and for my use case I was able to solve the problem faster than trying to figure out Apache httpd mod_macro or mustache. If you like to check out complete project, you can find it on GitHub. Enjoy!
What are some alternatives?
Scalate - Scalate is a Scala based template engine which supports HAML, Mustache and JSP, Erb and Velocity style syntaxes.
Mustache - Logic-less Ruby templates.
Beard - A lightweight, logicless templating engine, written in Scala and inspired by Mustache
lishogi - ☗ lishogi.org: the forever free, adless and open source shogi server forked from lichess.org ☗
Hepek - Typesafe HTML templates and static site generator in pure Scala
Lila - ♞ lichess.org: the forever free, adless and open source chess server ♞ [Moved to: https://github.com/lichess-org/lila]
ash-ra-template - Expressive & customizable template system featuring Clojure language processing
lila - ♞ lichess.org: the forever free, adless and open source chess server ♞
sbt-web - Library for building sbt plugins for the web
mo - Mustache templates in pure bash
Play Pagelets - A module for the Play Framework to build highly modular applications
sbt-digest - sbt-web plugin for checksum files