From bde9fc5dc13a5050995a3f62b0f5d189f56c4192 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 21 Oct 2013 17:05:43 +0400 Subject: [PATCH] path and :line options documented --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d6e1fa1d..d84be8d9 100644 --- a/README.md +++ b/README.md @@ -535,6 +535,14 @@ end ``` Renders the template string. +You can optionally specify `:path` and `:line` for a clearer backtrace if there is +a filesystem path or line associated with that string: + +```ruby +get '/' do + haml '%div.title Hello World', :path => 'examples/file.haml', :line => 3 +end +``` ### Available Template Languages