Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix the erubis auto escape faq bit. #101

Merged
merged 1 commit into from

2 participants

@bemurphy

I just updated the erubis auto escape bit in the faq, since #erubis is warning and the config setting no longer works as it was.

It's possible it should reference that older versions should still reference erubis for config and rendering.

@rkh rkh merged commit 635536e into sinatra:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 11, 2013
  1. @bemurphy
This page is out of date. Refresh to see the latest.
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.
Something went wrong with that request. Please try again.