PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/scalate-website/src/documentation/lift.page

http://github.com/scalate/scalate
Visualforce Page | 36 lines | 26 code | 10 blank | 0 comment | 0 complexity | cb7d2a0f25fbb98a3d416068bfb5da65 MD5 | raw file
 1---
 2title: Lift
 3in_menu: false
 4sort_info: 2
 5--- name:overview
 6# Jog
 7
 8Using Scalate with Lift
 9
10--- name:content pipeline:jade
11
12.left
13  :markdown
14    # Overview
15
16.right
17  :markdown
18    Lift is a popular Scala based web framework with particularly powerful Comet support.
19
20    Support for Scalate has been added to Lift in the Scala 2.8.0 branch. For more details see [ticket 475](https://liftweb.assembla.com/spaces/liftweb/tickets/475).
21
22.left
23  :markdown
24    # Example
25
26.right
27  :markdown
28    There is a [helloscalate](http://github.com/lift/lift/tree/280_RC7/examples/helloscalate/) sample which shows you how you can integrate Scalate views into Lift
29
30    The trick to enabling Scalate is to enable the ScalateView in your Boot.scala class such as in [this example](http://github.com/lift/lift/blob/280_RC7/examples/helloscalate/src/main/scala/bootstrap/liftweb/Boot.scala).
31
32    The following code should do the trick
33    
34    {pygmentize::scala}
35    new ScalateView.register
36    {pygmentize}