Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

README

  • Loading branch information...
commit 68c26bc6c78b559208d3dc89b355ec0c044c7f2b 1 parent ac4382f
Damian Helme authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 README.md
View
24 README.md
@@ -6,9 +6,9 @@ To use the utility in your own project:
1. download and build the TBUtils library:
- git clone https://github.com/dph01/lift-TBUtils
- cd liftTBUtils
- ./sbt publish-local`
+ git clone https://github.com/dph01/lift-TBUtils
+ cd liftTBUtils
+ ./sbt publish-local`
2. In the project in which you want to use the library, add the following to the dependencies in the project's build.sbt:
@@ -16,16 +16,16 @@ To use the utility in your own project:
3. In Boot.scala, define your menu sitemap with something like:
- val entries = List(Menu("Home") / "index",
- Menu("Page 1") / "page1",
- Menu("Page 2") / "page2",
- Menu("Page 3") / "#" >> PlaceHolder submenus (
- Menu("Page 3a") / "page3a" ,
- Menu("Page 3b") / "page3b" ,
- Menu("Page 3c") / "page3c"))
+ val entries = List(Menu("Home") / "index",
+ Menu("Page 1") / "page1",
+ Menu("Page 2") / "page2",
+ Menu("Page 3") / "#" >> PlaceHolder submenus (
+ Menu("Page 3a") / "page3a" ,
+ Menu("Page 3b") / "page3b" ,
+ Menu("Page 3c") / "page3c"))
- def sitemap = SiteMap(entries: _*)
- LiftRules.setSiteMap(sitemap)
+ def sitemap = SiteMap(entries: _*)
+ LiftRules.setSiteMap(sitemap)
Every menu entry with a submenu will the rendered as a menu drop-down. The 'PlaceHolder' is optional, but it's clearer to
other developers that you intend this entry to be the root of a drop-down if you include it.
Please sign in to comment.
Something went wrong with that request. Please try again.