Skip to content
This repository
Browse code

added Options section to Erubis

  • Loading branch information...
commit e9782efc081b9ab01782cfb7806a84f9c5c599c2 1 parent 953ca51
Wlodek Bzyl wbzyl authored committed

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 TEMPLATES.md
10 TEMPLATES.md
Source Rendered
@@ -77,6 +77,16 @@ the extensions as follows:
77 77 Tilt.register 'erb', Tilt::ErubisTemplate
78 78 Tilt.register 'rhtml', Tilt::ErubisTemplate
79 79
  80 +### Options
  81 +
  82 +#### `:trim => true`
  83 +
  84 +Delete spaces around '<% %>'. (But, spaces around '<%= %>' are preserved.)
  85 +
  86 +#### `:pattern => '<% %>'`
  87 +
  88 +Set pattern for embedded Ruby code.
  89 +
80 90 See the [ERB](#erb) template documentation for examples, usage, and options.
81 91
82 92 __NOTE:__ It's suggested that your program `require 'erubis'` at load time when

0 comments on commit e9782ef

Please sign in to comment.
Something went wrong with that request. Please try again.