CSC/ECE 517 Fall 2014/ch1a 4 wl: Difference between revisions
Jump to navigation
Jump to search
(Created page with "WEB DEVELOPMENT USING LIFT") |
No edit summary |
||
Line 1: | Line 1: | ||
WEB DEVELOPMENT USING LIFT | WEB DEVELOPMENT USING LIFT | ||
== Lift Web Framework == | |||
=== Components === | |||
# LiftCore: This is the web processor of the framework which handles the following functions. | |||
## Request/Response | |||
## Rendering Pipeline | |||
## Invoking User Functions | |||
# LiftRules : Lift Configuration | |||
# LiftSession: Inherent Session State. | |||
# S: stateful context for request/response lifecycle. | |||
# SiteMap: contains web pages for the lift application. | |||
# SHtml: helper functions for XHtml. | |||
# Views: Views as XML content. Allows composing views from not only html files but other contexts too. | |||
# LiftResponse: Abstraction of response sent to the client. | |||
# Comet: allows sending asynchronous content to browser. | |||
# ORM: A specialized library. | |||
# HTTP Auth: provides control over authentication model. | |||
# JS API: JavaScript abstraction layer. | |||
== Getting Started == | |||
=== Set Up on Eclipse : === | |||
# Download “Scala IDE for Eclipse” : http://scala-ide.org/ | |||
# Install plugin in Eclipse from this update site : http://download.scala-ide.org/sdk/helium/e38/scala211/stable/site | |||
# Once the plugin is installed restart Eclipse | |||
# Install sbteclipse by adding the following to projects/plugins.sbt in your Lift Project: <code> addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0") </code> | |||
# You can then create Eclipse project files (.project and .classpath) by entering the following into the SBT prompt: <code> eclipse </code> | |||
== Basic Web Application Structure == | |||
=== Step 1: Making a SiteMap entry === | |||
Every page on the site needs a SiteMap entry. | |||
<code> | |||
// Build SiteMap | |||
def sitemap(): SiteMap = SiteMap( | |||
Menu("Home") / "index", | |||
Menu("Second Page") / "second" | |||
) | |||
</code> |
Revision as of 17:14, 16 September 2014
WEB DEVELOPMENT USING LIFT
Lift Web Framework
Components
- LiftCore: This is the web processor of the framework which handles the following functions.
- Request/Response
- Rendering Pipeline
- Invoking User Functions
- LiftRules : Lift Configuration
- LiftSession: Inherent Session State.
- S: stateful context for request/response lifecycle.
- SiteMap: contains web pages for the lift application.
- SHtml: helper functions for XHtml.
- Views: Views as XML content. Allows composing views from not only html files but other contexts too.
- LiftResponse: Abstraction of response sent to the client.
- Comet: allows sending asynchronous content to browser.
- ORM: A specialized library.
- HTTP Auth: provides control over authentication model.
- JS API: JavaScript abstraction layer.
Getting Started
Set Up on Eclipse :
- Download “Scala IDE for Eclipse” : http://scala-ide.org/
- Install plugin in Eclipse from this update site : http://download.scala-ide.org/sdk/helium/e38/scala211/stable/site
- Once the plugin is installed restart Eclipse
- Install sbteclipse by adding the following to projects/plugins.sbt in your Lift Project:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
- You can then create Eclipse project files (.project and .classpath) by entering the following into the SBT prompt:
eclipse
Basic Web Application Structure
Step 1: Making a SiteMap entry
Every page on the site needs a SiteMap entry.
// Build SiteMap
def sitemap(): SiteMap = SiteMap(
Menu("Home") / "index",
Menu("Second Page") / "second"
)