Update README.md

use set to escape html in Sinatra
This commit is contained in:
MATSUOKA Kohei 2015-04-06 09:35:25 +09:00
parent 7a53b51b44
commit 1f68085f7d
1 changed files with 1 additions and 3 deletions

View File

@ -59,9 +59,7 @@ For compatibility with Haml, Hamlit does not escape html automatically in sinatr
You can enable html escaping manually:
```ruby
configure do
Hamlit::Engine.set_default_options(escape_html: true)
end
set :haml, { escape_html: true }
```
## Why high performance?