Skip to content
This repository
Browse code

document ERB/Erubis :outvar option

  • Loading branch information...
commit e1ce6dabceace013782ddafb4c8297b1287d8f57 1 parent d281f59
Ryan Tomayko authored March 04, 2010

Showing 1 changed file with 13 additions and 2 deletions. Show diff stats Hide diff stats

  1. 15  TEMPLATES.md
15  TEMPLATES.md
Source Rendered
@@ -67,6 +67,12 @@ of any combination of the following characters:
67 67
 The `$SAFE` level; when set, ERB code will be run in a
68 68
 separate thread with `$SAFE` set to the provided level.
69 69
 
  70
+#### `:outvar => '_erbout'`
  71
+
  72
+The name of the variable used to accumulate template output. This can be
  73
+any valid Ruby expression but must be assignable. By default a local
  74
+variable named `_erbout` is used.
  75
+
70 76
 ### See also
71 77
 
72 78
   * [ERB documentation](http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html)
@@ -98,14 +104,19 @@ Set pattern for embedded Ruby code.
98 104
 
99 105
 See the [ERB](#erb) template documentation for examples, usage, and options.
100 106
 
101  
-__NOTE:__ It's suggested that your program `require 'erubis'` at load time when
102  
-using this template engine within a threaded environment.
  107
+#### `:outvar => '_erbout'`
  108
+
  109
+The name of the variable used to accumulate template output. This can be
  110
+any valid Ruby expression but must be assignable. By default a local
  111
+variable named `_erbout` is used.
103 112
 
104 113
 ### See also
105 114
 
106 115
   * [Erubis Home](http://www.kuwata-lab.com/erubis/)
107 116
   * [Erubis User's Guide](http://www.kuwata-lab.com/erubis/users-guide.html)
108 117
 
  118
+__NOTE:__ It's suggested that your program `require 'erubis'` at load time when
  119
+using this template engine within a threaded environment.
109 120
 
110 121
 <a name='haml'></a>
111 122
 Haml (`haml`)

0 notes on commit e1ce6da

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