Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added Options section to Erubis

  • Loading branch information...
commit e9782efc081b9ab01782cfb7806a84f9c5c599c2 1 parent 953ca51
@wbzyl wbzyl authored committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 TEMPLATES.md
View
10 TEMPLATES.md
@@ -77,6 +77,16 @@ the extensions as follows:
Tilt.register 'erb', Tilt::ErubisTemplate
Tilt.register 'rhtml', Tilt::ErubisTemplate
+### Options
+
+#### `:trim => true`
+
+Delete spaces around '<% %>'. (But, spaces around '<%= %>' are preserved.)
+
+#### `:pattern => '<% %>'`
+
+Set pattern for embedded Ruby code.
+
See the [ERB](#erb) template documentation for examples, usage, and options.
__NOTE:__ It's suggested that your program `require 'erubis'` at load time when
Please sign in to comment.
Something went wrong with that request. Please try again.