O'Reilly logo

Instant Lift Web Applications How-to by Torsten Uhlmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Lift snippets (Simple)

Every web application that does more than rendering static content needs some way to add logic to the pages it sends to the browser. Since Lift does not allow any logic inside its templates (see the previous recipe), there must be a different mechanism. In Lift these logic parts that plug into the page are called snippets.

Getting ready

In the previous recipe we have shed some light on Lift's template mechanism. The templates are the user interface of your application. Now we need to discuss how we can bind logic to it. Lift uses a different approach than most other web frameworks. Lift calls this approach "View First". We'll discuss what it means and why we think it's better suited for this kind of application development. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required