/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. ---
  2. title: Lift
  3. in_menu: false
  4. sort_info: 2
  5. --- name:overview
  6. # Jog
  7. Using Scalate with Lift
  8. --- name:content pipeline:jade
  9. .left
  10. :markdown
  11. # Overview
  12. .right
  13. :markdown
  14. Lift is a popular Scala based web framework with particularly powerful Comet support.
  15. 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).
  16. .left
  17. :markdown
  18. # Example
  19. .right
  20. :markdown
  21. 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
  22. 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).
  23. The following code should do the trick
  24. {pygmentize::scala}
  25. new ScalateView.register
  26. {pygmentize}