mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
path and :line options documented
This commit is contained in:
parent
73c182cfb1
commit
bde9fc5dc1
1 changed files with 8 additions and 0 deletions
|
@ -535,6 +535,14 @@ end
|
||||||
```
|
```
|
||||||
|
|
||||||
Renders the template string.
|
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
|
### Available Template Languages
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue