Are there any Scala template engines other than scaling?

I am trying to implement scaling to my site using sbt + jrebel, but found that there are some problems that I cannot solve.

So, I want to know if there are other scala-based template engines?

+8
scala template-engine scalate
source share
8 answers

How about tagging a Scalate group and describing current issues that you have? Sure it works pretty straightforward? If the problem is related to sbt + jrebel and reloading the scala class of the code that you want to use in your template; the template switching mechanism is not like a parameter (unless you want to stop using scala in your templates). Plus Scalate is truly the best and most popular template engine that uses scala expressions inside it.

+3
source share

The scala game platform has a new scala template engine

not sure if it can be used outside the game

http://scala.playframework.org/documentation/scala-0.9.1/templates

+5
source share

Thanks to Scala's String Interpolation 2.10, we can now use our own syntax to create complex text content.

Just use Fastring . It has both good performance and ease of use.

+2
source share

Pure Scala DSL:

"Regular" template engines:

+2
source share

If you are running the JVM, Scala Java compatibility will allow you to use Velocity or Freemarker.

0
source share

I would like to take a look at Stitchr , which was largely inspired by StringTemplate.

0
source share

Scalasti is a Scala wrapper around a StringTemplate.

0
source share

As mentioned above, I would recommend using Twirl (the template system from Play). Now it is very easy to use offline. You will have a summary check of time for your templates and many other interesting and simple things:

https://github.com/spray/twirl

0
source share

All Articles