Well, actually it would be no problem at all.
Sprays architecture is very open, so it'd be easy to add something like a "getFromView" directive that serves up scalate templates.
> Is it because of difficulty in adding these features or just the
> inclination towards REST?
The main reason is focus.
Spray could certainly be a basis for a frontend framework, however frontend support has a number of requirements that pure machine-to-machine applications do not have. In order to not spread development resources too thin we focus on RESTful machine-to-machine web services for now...
Of course any code contributions, even if they are more frontend centric, would be very welcome!
Cheers,
Mathias
PS: The spray-examples project contains a markdown-server example, that demos something similar to basic templating, only that it's not scalata but markdown templates.
---
mat...@spray.cc
http://www.spray.cc