Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

document new erubis options in TEMPLATES.md

  • Loading branch information...
commit 4ee7afac84c3c8f49929350c913e1cb2d04963a2 1 parent 209eddc
@rtomayko authored
Showing with 17 additions and 6 deletions.
  1. +17 −6 TEMPLATES.md
View
23 TEMPLATES.md
@@ -94,15 +94,16 @@ the extensions as follows:
### Options
-#### `:trim => true`
+#### `:engine_class => Erubis::Eruby`
-Delete spaces around '<% %>'. (But, spaces around '<%= %>' are preserved.)
+Allows you to specify a custom engine class to use instead of the
+default which is `Erubis::Eruby`.
-#### `:pattern => '<% %>'`
-
-Set pattern for embedded Ruby code.
+#### `:escape_html => false`
-See the [ERB](#erb) template documentation for examples, usage, and options.
+When `true`, `Erubis::EscapedEruby` will be used as the engine class
+instead of the default. All content within `<%= %>` blocks will be
+automatically html escaped.
#### `:outvar => '_erbout'`
@@ -110,6 +111,16 @@ The name of the variable used to accumulate template output. This can be
any valid Ruby expression but must be assignable. By default a local
variable named `_erbout` is used.
+#### `:pattern => '<% %>'`
+
+Set pattern for embedded Ruby code.
+
+See the [ERB](#erb) template documentation for examples, usage, and options.
+
+#### `:trim => true`
+
+Delete spaces around '<% %>'. (But, spaces around '<%= %>' are preserved.)
+
### See also
* [Erubis Home](http://www.kuwata-lab.com/erubis/)
Please sign in to comment.
Something went wrong with that request. Please try again.