Permalink
Browse files

Merge pull request #2 from eed3si9n/master

0.4.0
  • Loading branch information...
2 parents 4be0e4a + b4fd692 commit fef876a15f25e097c02f4561ef38a135033cb587 @n8han committed Feb 28, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 build.sbt
  2. +4 −1 src/main/scala/pamflet-plugin.scala
View
@@ -3,5 +3,5 @@ name := "pamflet-plugin"
sbtPlugin := true
libraryDependencies ++= Seq(
- "net.databinder" %% "pamflet-library" % "0.3.0"
+ "net.databinder" %% "pamflet-library" % "0.4.0"
)
@@ -25,7 +25,10 @@ object PamfletPlugin extends Plugin {
output <<= target / "docs",
storage <<= (docs, properties) {
(docs, properties) =>
- FileStorage(docs, StringTemplate(properties))
+ FileStorage(docs, properties match {
+ case file if file.exists => Some(file)
+ case _ => None
+ })
},
server <<= (storage) { (storage) =>
Preview(storage.contents)

0 comments on commit fef876a

Please sign in to comment.