Scala bare bones web frames?

Is there a bare bones Scala web framework? I mainly need such important functions as:

  • Routing
  • Processing GET / POST / PUT parameters.
  • The template engine is simple (content-based lookup).
  • Serialization (JSON, YAML)

I don’t like Lift, because it is too much for me, since I would like to completely control the HTML created, which means that I want to write 100% of the HTML / CSS / JS code.

Is there such a structure? Or can you use Lift so that no HTML code is created behind the scenes? Or should I write a regular servlet?

+5
source share
7 answers

, Scalatra Unfiltered? HTML/CSS/JS "", .

+7
... .

HTTP-, HTTP. , .

REST Lift RestHelper. . http://simply.liftweb.net/index-Chapter-5.html. , Lift RestHelper , MVC/Routing, - . Scala , , , - , . , REST REST , -.

HTML- Lift, HTML, HTML DOM, .

- , HTML. , HTML-. , . .

HTML Lift MVC. . https://github.com/dpp/hoisted ( , http://liftweb.net)

"" "" Lift - HTML, . , <head> , HTML, Lift <head> . Lift Comet, JavaScript , . , , Lift.

, Lift.

+2

:

  • Play - REST, Scala . Scala. JSON (, lift-json), case, Play . , . Scala Typesafe Play . Play Akka, Akka, , .

  • , Spray. , Wiki . , Spray Akka. , , , , Scalate (. ).

+1

Scala, Jetty + JAX-RS + Scala + Freemarker. , Scala. , Freemarker Scala, .

0

Scalatra - fairly bare bones with the kindness of scala. Easy to configure, easy to process HTTP Bare material. This is similar to the sinatra scala. Scalatra also has good Maven support and coexists well with traditional Java servlets.

0
source

The modern Scala web maps are: Play (on Akka HTTP), Scalatra (Akka Actors) and Finatra. https://www.reddit.com/r/scala/comments/743zjv/web_framework/

0
source

All Articles