n8han/pamflet — Issue #21: java.io.FileNotFoundException "docs/template.properties (No such file or directory)"
Author: eed3si9n
Created: 2012-01-30 15:09:21+00:00
State: open

## steps
1. make `docs` folder and write 00.markdown.
2. run `pf`.

## problem

```
Previewing `docs`. Press CTRL+C to stop.
2012-01-30 10:02:03.246:WARN:oejs.ServletHandler:/xyz.html
java.io.FileNotFoundException: docs/template.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at pamflet.StringTemplate.properties(template.scala:24)
at pamflet.StringTemplate.get(template.scala:27)
at pamflet.Printer.print(printer.scala:138)
at pamflet.Printer$$anonfun$printNamed$1.apply(printer.scala:155)
at pamflet.Printer$$anonfun$printNamed$1.apply(printer.scala:155)
at scala.Option.map(Option.scala:133)
at pamflet.Printer.printNamed(printer.scala:155)
at pamflet.Preview$$anonfun$apply$1.apply(preview.scala:15)
at pamflet.Preview$$anonfun$apply$1.apply(preview.scala:9)
at scala.PartialFunction$$anon$3.apply(PartialFunction.scala:67)
at scala.PartialFunction$$anon$3.apply(PartialFunction.scala:66)
at unfiltered.response.Pass$PartialAttempt.attemptWithPass(pass.scala:67)
at unfiltered.response.Pass$PassingAttempt$class.attempt(pass.scala:60)
at unfiltered.response.Pass$PartialAttempt.attempt(pass.scala:62)
at unfiltered.response.Pass$$anonfun$fold$1.apply(pass.scala:43)
at unfiltered.response.Pass$FunctionAttempt.apply(pass.scala:72)
at unfiltered.filter.Plan$class.doFilter(plans.scala:47)
at unfiltered.filter.Planify.doFilter(plans.scala:53)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:345)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50)
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:680)
```

## expectations

it works without template.properties.