Permalink
Browse files

Designer Friendly Templates

  • Loading branch information...
1 parent 22add58 commit a8f15cc94c5baacb6ac8fc295c349edcd3d7be9b unknown committed Jan 7, 2011
View
4 web/src/main/resources/default.props
@@ -1,3 +1,3 @@
version=1.0
-lastUpdate=06.01.2011
-versions=Scala 2.8.1, Lift 2.2
+lastUpdate=07.01.2011
+versions=Scala 2.8.1, Lift 2.3-SNAPSHOT
View
29 web/src/main/scala/TravelCompanionScala/snippet/Props.scala
@@ -1,29 +0,0 @@
-package TravelCompanionScala.snippet
-
-import net.liftweb.http.S
-import xml.{Text, NodeSeq}
-import _root_.net.liftweb.util.Props
-
-/**
- * The Props snippet renders <Props/> tags
- *
- * Further Information on usages of Properties can be found on:
- * - Technologiestudium (github link) Chapter 5.6 [German]
- *
- * @author Ralf Muri
- *
- */
-
-class Props {
- /**
- * Renders prop tags like <lift:Props key="lastUpdate"/>
- * net.liftweb.util.Props looks for property files in src/main/resources
- */
-
- def render(html: NodeSeq): NodeSeq = {
- S.attr.~("key").map(_.text) match {
- case Some(key) => Text(Props.get(key, "not found"))
- case _ => NodeSeq.Empty
- }
- }
-}

0 comments on commit a8f15cc

Please sign in to comment.