mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Update README.md
This commit is contained in:
parent
27b29846a0
commit
3bf294c98e
1 changed files with 2 additions and 11 deletions
13
README.md
13
README.md
|
@ -50,18 +50,9 @@ Hamlit is used on [githubranking.com](http://githubranking.com/).
|
||||||
Basically the same as [haml](https://github.com/haml/haml).
|
Basically the same as [haml](https://github.com/haml/haml).
|
||||||
Check out the [reference documentation](http://haml.info/docs/yardoc/file.REFERENCE.html) for details.
|
Check out the [reference documentation](http://haml.info/docs/yardoc/file.REFERENCE.html) for details.
|
||||||
|
|
||||||
### Rails
|
### Rails, Sinatra
|
||||||
|
|
||||||
Just update Gemfile.
|
Just update Gemfile. Html escaping is enabled by default.
|
||||||
|
|
||||||
### Sinatra
|
|
||||||
|
|
||||||
For compatibility with Haml, Hamlit does not escape html automatically in sinatra.
|
|
||||||
You can enable html escaping manually:
|
|
||||||
|
|
||||||
```ruby
|
|
||||||
set :haml, { escape_html: true }
|
|
||||||
```
|
|
||||||
|
|
||||||
## Why high performance?
|
## Why high performance?
|
||||||
### Less work on runtime
|
### Less work on runtime
|
||||||
|
|
Loading…
Add table
Reference in a new issue