Dmitry Grigoriev | 26 Jan 16:09
Picon

Re: lib.web 0.3: welcome to try!

Hello Maxime,

>  Don't get me wrong, MVC is a good pattern, it's just that the I prefer to have the V (View) as plain old code,
rather than markup that gets little or no compile time validation. 

Yeah, that's exactly what I'm advocating for: templates as just Scala
functions (anything) => scala.xml.NodeSeq. For example, surrounding
template is:

def template(..., content: => NodeSeq): NodeSeq =
	<html>
		<head>...</head>
		<body>
			...
			{content}
			...
		</body>
	</html>

> Which is why I like GWT so much, unfortunately it is not (yet) available in Scala.

I have already heard many good words about GWT and plan to look at it in
the nearest future.

--

-- 
Cheers,
dimgel

http://github.com/dimgel/lib.web — thin, stateless, strictly typed Scala
web framework.


Gmane