- You can get some type checking done when your code is compiled.
Download LiftIf you’re new to Lift, download it from: http://liftweb.net/download As the instructions say, if you change into the scala_28/lift_basic directory and run
sbt update ~jetty-runthen an empty Lift application should start.
<div class="lift:RegistrationController?form=post"> First name: <input id="first_name"><br> Surname: <input id="last_name"><br> E-mail: <input id="email"></br> <input type="submit" value="Submit"> </div>Now we need to create the snippet that will process this form. The class on the form indicates that it will be processed by a snippet called “RegistrationController” so go into src/main/scala/code/snippet and create RegistrationController.scala:
Let's extend the example slightly to show how we can edit the browser DOM. Let's add a second button to the html template next to the first: First name: