Snippets

Lift Web applies the concepts of functional programming to web page rendering.  Rather than treating an HTTP request as a composition of output, Lift treats an HTTP request as a transformation of input to output.

The first transformation in the HTML rendering pipeline is a transformation of the URL to a template (this is also known as view first).  In Scala notation, this is Req => NodeSeq (Req being the request and NodeSeq representing a sequence of XHTML or HTML5 nodes).

The template is then passed to LiftSession.processTemplate method which applies the following transformation: