Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the erubis auto escape faq bit.

  • Loading branch information...
commit c3fc8219a2fc0e6c9e8d656889363e3799d2861d 1 parent 6fafa48
@bemurphy bemurphy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 faq.markdown
View
4 faq.markdown
@@ -267,12 +267,12 @@ How do I automatically escape HTML? {#auto_escape_html}
Require [Erubis](http://rubygems.org/gems/erubis) and set `escape_html` to `true`:
require 'erubis'
- set :erubis, :escape_html => true
+ set :erb, :escape_html => true
Then, any templates rendered with Erubis will be automatically escaped:
get '/' do
- erubis :index
+ erb :index
end
Read more on the [Tilt Google Group](https://groups.google.com/forum/#!topic/tiltrb/PPm-sMz6Swc) and see [this example app](http://flowcoder.com/177) for details.
Please sign in to comment.
Something went wrong with that request. Please try again.