Permalink
Browse files

document new erubis options in TEMPLATES.md

  • Loading branch information...
rtomayko committed Mar 9, 2010
1 parent 209eddc commit 4ee7afac84c3c8f49929350c913e1cb2d04963a2
Showing with 17 additions and 6 deletions.
  1. +17 −6 TEMPLATES.md
View
@@ -94,22 +94,33 @@ 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'`
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/)

0 comments on commit 4ee7afa

Please sign in to comment.