ferb 0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. data/LGPL30 +165 -0
  2. data/README +2 -0
  3. data/lib/ferb.rb +303 -0
  4. data/lib/ferb_helper.rb +29 -0
  5. data/lib/method_args.rb +115 -0
  6. metadata +57 -0
data/LGPL30 ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/README ADDED
@@ -0,0 +1,2 @@
1
+ ferb is a library that makes it easy to call code generated by ERB
2
+ easily from within normal Ruby code
@@ -0,0 +1,303 @@
1
+ # This is a mixin module that makes it easy to define methods on a
2
+ # class that are expanded using an ERB template
3
+ #
4
+ # Author:: Jim Powers (mailto:jim@corruptmemory.com)
5
+ # Copyright:: Copyright (c) 2008-2009 Jim Powers
6
+ # License:: Distributed under the terms of the LGPLv3.0 or newer.
7
+ # For details see the LGPL30 file
8
+ #
9
+ # == Example:
10
+ #
11
+ # class Foo
12
+ # require 'ferb'
13
+ # include Ferb
14
+ #
15
+ # def_template("hello_world(m)","<b><%= m %></b>")
16
+ #
17
+ # end
18
+ #
19
+ module Ferb
20
+ require 'erb'
21
+ require 'pathname'
22
+ require 'stringio'
23
+ require 'method_args'
24
+
25
+ # Enables support for reloading file templates at run-time
26
+ # if the file timestamp has changed
27
+ def self.enable_reload?
28
+ if defined?(@@enable_reload)
29
+ return @@enable_reload
30
+ else
31
+ return false
32
+ end
33
+ end
34
+
35
+ # Enables support for reloading file templates at run-time
36
+ # if the file timestamp has changed
37
+ def self.enable_reload=(val)
38
+ @@enable_reload = val
39
+ end
40
+
41
+ # The "callback" when this module is included by a class. Extends
42
+ # the class with the metods defined in the inner 'ClassMethods'
43
+ # module
44
+ def self.included(base)
45
+ base.extend(ClassMethods)
46
+ end
47
+
48
+ def self.build_internal_template(signature,body)
49
+ body_rb = ERB.new(body,nil,'-').src
50
+ <<EOS
51
+ def __ferb_#{signature}
52
+ #{body_rb}
53
+ end
54
+ EOS
55
+ end
56
+
57
+
58
+ # Builds a string representing the definition of the function
59
+ def self.build_template(signature, clean_sig, source_file_data = nil, function = nil)
60
+ unless source_file_data
61
+ <<EOS
62
+ def #{signature}
63
+ __ferb_#{clean_sig}
64
+ end
65
+ EOS
66
+ else
67
+ <<EOS
68
+ def #{signature}
69
+ if Ferb.enable_reload?
70
+ full_path = '#{source_file_data[:full_path]}'
71
+ signature = '#{function}'
72
+ if should_reload?(full_path)
73
+ args = {:path => full_path}
74
+ template = Ferb.load_template(args)
75
+ add_timestamp(args[:full_path], args[:timestamp])
76
+ internal_func = Ferb.construct_internal_function_def(signature,template)
77
+ eval(internal_func)
78
+ end
79
+ end
80
+ __ferb_#{clean_sig}
81
+ end
82
+ EOS
83
+ end
84
+ end
85
+
86
+ def self.load_template(args)
87
+ result = nil
88
+ path = nil
89
+ if args.has_key?(:path)
90
+ path = Pathname.new(args[:path].to_s.strip)
91
+ elsif args.has_key?(:file)
92
+ template_root = args[:template_root]
93
+ unless template_root.is_a?(Pathname)
94
+ template_root = Pathname.new(args[:template_root].to_s)
95
+ end
96
+ args[:template_root] = template_root
97
+ path = template_root+args[:file]
98
+ else
99
+ raise(":file or :path not specified: #{args.inspect}")
100
+ end
101
+ args[:full_path] = path.realpath
102
+ args[:timestamp] = path.mtime
103
+ path.open do |f|
104
+ result = f.read
105
+ end
106
+ result
107
+ end
108
+
109
+ def self.get_template_parts(template)
110
+ result = nil
111
+ if template and !template.strip.empty?
112
+ strio = StringIO.new(template)
113
+ first_line = strio.readline
114
+ if first_line.strip =~ /^<!--.*\|(.*)\|.*-->$/
115
+ sig = $1
116
+ body = strio.read
117
+ result = [sig, body]
118
+ else
119
+ body = template
120
+ end
121
+ end
122
+ result
123
+ end
124
+
125
+ def self.construct_function_sig(function, sig)
126
+ sig = sig.strip
127
+ if !sig.empty?
128
+ ["#{function.to_s.strip}(#{sig})", "#{function.to_s.strip}(#{MethodArgsHelper.get_args(sig).join(',')})"]
129
+ else
130
+ [function.to_s.strip, nil]
131
+ end
132
+ end
133
+
134
+ def self.construct_function_def(function, template, args = nil)
135
+ parts = get_template_parts(template)
136
+ funsig = nil
137
+ clean_sig = nil
138
+ if parts.is_a?(Array)
139
+ funsig, clean_sig = construct_function_sig(function,parts[0])
140
+ else
141
+ funsig = function
142
+ end
143
+ build_template(funsig, clean_sig, args, function)
144
+ end
145
+
146
+ def self.construct_internal_function_def(function, template)
147
+ parts = get_template_parts(template)
148
+ funsig = nil
149
+ clean_sig = nil
150
+ body = nil
151
+ if parts.is_a?(Array)
152
+ funsig, clean_sig = construct_function_sig(function,parts[0])
153
+ body = parts[1]
154
+ else
155
+ funsig = function
156
+ body = template
157
+ end
158
+ build_internal_template(funsig, body)
159
+ end
160
+
161
+ # Inner module holding the actual methods to be added to the class
162
+ module ClassMethods
163
+
164
+ public
165
+ # Hash of file timestamps
166
+ def file_timestamps
167
+ unless defined?(@file_timestamps)
168
+ @file_timestamps = {}
169
+ end
170
+ @file_timestamps
171
+ end
172
+
173
+ # Record file timestamps
174
+ def add_timestamp(path, time)
175
+ self.file_timestamps[path.to_s] = time
176
+ end
177
+
178
+ # Test file timestamps
179
+ def should_reload?(path)
180
+ time = Pathname.new(path.to_s).mtime
181
+ ts = self.file_timestamps[path]
182
+ if ts and (ts >= time)
183
+ return false;
184
+ else
185
+ return true
186
+ end
187
+ end
188
+
189
+ # Returns the root in the file system where ERB templates can be found
190
+ def template_root
191
+ if !defined?(@template_root)
192
+ @template_root = Pathname.new(File.expand_path(File.dirname(__FILE__)))
193
+ end
194
+ @template_root
195
+ end
196
+
197
+ # Sets the root in the file system where ERB templates can be found
198
+ def template_root=(location)
199
+ @template_root = Pathname.new(File.expand_path(location.to_s))
200
+ end
201
+
202
+
203
+ # Defines a template function as an instance method. Creates the
204
+ # method directly on the class.
205
+ #
206
+ # == Arguments:
207
+ #
208
+ # <tt>signature</tt> - (string) The complete signature including parameters
209
+ # <tt>body</tt> - (string) The body of the functionusing ERB syntax
210
+ #
211
+ # == Example:
212
+ #
213
+ # def_template("hello_world(message)","<b><%= message %></b>")
214
+ #
215
+ def def_template(signature,args)
216
+ if args.is_a?(String)
217
+ internal_func = Ferb.construct_internal_function_def(signature,args)
218
+ external_func = Ferb.construct_function_def(signature,args)
219
+ module_eval(internal_func)
220
+ module_eval(external_func)
221
+ elsif args.is_a?(Hash)
222
+ args = { :template_root => template_root}.merge(args)
223
+ template = Ferb.load_template(args)
224
+ add_timestamp(args[:full_path], args[:timestamp])
225
+ internal_func = Ferb.construct_internal_function_def(signature,template)
226
+ external_func = Ferb.construct_function_def(signature,template,args)
227
+ module_eval(internal_func)
228
+ module_eval(external_func)
229
+ end
230
+ end
231
+ end
232
+
233
+ def file_timestamps
234
+ unless defined?(@file_timestamps)
235
+ @file_timestamps = {}
236
+ end
237
+ @file_timestamps
238
+ end
239
+
240
+ # Record file timestamps
241
+ def add_timestamp(path, time)
242
+ self.file_timestamps[path] = time
243
+ end
244
+
245
+ # Test file timestamps
246
+ def should_reload?(path)
247
+ time = Pathname.new(path).mtime
248
+ ts = self.file_timestamps[path]
249
+ if ts and (ts >= time)
250
+ return false;
251
+ else
252
+ return true
253
+ end
254
+ end
255
+
256
+ # Returns the root in the file system where ERB templates can be found
257
+ def template_root
258
+ if !defined?(@template_root)
259
+ if self.class.respond_to?(:template_root)
260
+ @template_root = self.class.template_root
261
+ else
262
+ @template_root = Pathname.new(File.expand_path(File.dirname(__FILE__)))
263
+ end
264
+ end
265
+ @template_root
266
+ end
267
+
268
+ # Sets the root in the file system where ERB templates can be found
269
+ def template_root=(location)
270
+ @template_root = Pathname.new(File.expand_path(location))
271
+ end
272
+
273
+ # Defines a template function in an individual object (only
274
+ # available to a prticular instance) as an instance method. Creates
275
+ # the method directly on the object (instance).
276
+ #
277
+ # == Arguments:
278
+ #
279
+ # <tt>signature</tt> - (string) The complete signature including parameters
280
+ # <tt>body</tt> - (string) The body of the functionusing ERB syntax
281
+ #
282
+ # == Example:
283
+ #
284
+ # obj.def_template("hello_world(message)","<b><%= message %></b>")
285
+ #
286
+ def def_template(signature,args)
287
+ if args.is_a?(String)
288
+ internal_func = Ferb.construct_internal_function_def(signature,args)
289
+ external_func = Ferb.construct_function_def(signature,args)
290
+ eval(internal_func)
291
+ eval(external_func)
292
+ elsif args.is_a?(Hash)
293
+ args = { :template_root => template_root}.merge(args)
294
+ template = Ferb.load_template(args)
295
+ add_timestamp(args[:full_path], args[:timestamp])
296
+ internal_func = Ferb.construct_internal_function_def(signature,template)
297
+ external_func = Ferb.construct_function_def(signature,template,args)
298
+ eval(internal_func)
299
+ eval(external_func)
300
+ end
301
+ end
302
+
303
+ end
@@ -0,0 +1,29 @@
1
+ # Helper module to make it easy to use Ferb within Rails
2
+ #
3
+ # Author:: Jim Powers (mailto:jim@corruptmemory.com)
4
+ # Copyright:: Copyright (c) 2008-2009 Jim Powers
5
+ # License:: Distributed under the terms of the LGPLv3.0 or newer.
6
+ # For details see the LGPL30 file
7
+ #
8
+ # To use require <tt>ferb_helper</tt> in your environment.rb file. Then
9
+ # include <tt>FerbHelper</tt> in any helper files you wish. Also, to use
10
+ # within your controllers add the following to your application cotroller:
11
+ #
12
+ # def self.inherited(subclass)
13
+ # super(subclass)
14
+ # subclass.send :include, FerbHelper
15
+ # end
16
+ #
17
+ require 'ferb'
18
+ module FerbHelper
19
+ def self.included(base)
20
+ base.send :include, Ferb
21
+ path_suffix = ''
22
+ if base.name =~ /Helper$/i
23
+ path_suffix = "#{base.name.gsub(/Helper$/,'').underscore}/"
24
+ elsif base.name =~ /Controller$/i
25
+ path_suffix = "#{base.name.gsub(/Controller$/,'').underscore}/"
26
+ end
27
+ base.template_root = Pathname.new(RAILS_ROOT)+'app/views/' + path_suffix
28
+ end
29
+ end
@@ -0,0 +1,115 @@
1
+ # Code to extract the formal parameter names and types from a function
2
+ # given a standard Ruby function argument signature. Original code based
3
+ # on the MethodArgs module written by Mauricio Fernandez <mfp@acm.org>
4
+ # (http://eigenclass.org). Updated to work with function signatures added at
5
+ # runtime, also, peroperly handles block arguments.
6
+ #
7
+ # Author:: Jim Powers (mailto:jim@corruptmemory.com)
8
+ # Copyright:: Copyright (c) 2008-2009 Jim Powers
9
+ # License:: Distributed under the terms of the LGPLv3.0 or newer.
10
+ # For details see the LGPL30 file
11
+ #
12
+ # == Example:
13
+ #
14
+ # require 'method_args'
15
+ # MethodArgsHelper.get_args("a, b = {}, *c, &d")
16
+ # => ["a", "b", "*c", "&d"]
17
+ #
18
+ # Very useful for building proxy functions that call an underlying function
19
+ #
20
+ class MethodArgs
21
+ MAX_ARGS = 20
22
+ attr_reader :params
23
+
24
+ def output_method_info(klass, object, meth, is_singleton = false)
25
+ @params = nil
26
+ @values = nil
27
+ num_args = 0
28
+ unless %w[initialize].include?(meth.to_s)
29
+ if is_singleton
30
+ return if class << klass; private_instance_methods(true) end.include?(meth.to_s)
31
+ else
32
+ return if class << object; private_instance_methods(true) end.include?(meth.to_s)
33
+ end
34
+ end
35
+ arity = is_singleton ? object.method(meth).arity : klass.instance_method(meth).arity
36
+ set_trace_func lambda{|event, file, line, id, binding, classname|
37
+ begin
38
+ if event[/call/] && classname == MethodArgsHelper && id == meth
39
+ @params = eval("local_variables", binding)
40
+ @values = eval("local_variables.map{|x| eval(x)}", binding)
41
+ throw :done
42
+ end
43
+ rescue Exception
44
+ end
45
+ }
46
+ if arity >= 0
47
+ num_args = arity
48
+ catch(:done){ object.send(meth, *(0...arity)) }
49
+ else
50
+ # determine number of args (including splat & block)
51
+ MAX_ARGS.downto(arity.abs - 1) do |i|
52
+ catch(:done) do
53
+ begin
54
+ object.send(meth, *(0...i))
55
+ rescue Exception
56
+ end
57
+ end
58
+ next if !@values || @values.compact.empty?
59
+ k = nil
60
+ @values.each_with_index{|x,j| break (k = j) if Array === x}
61
+ if k
62
+ num_args = k+1
63
+ else
64
+ num_args = i
65
+ end
66
+ end
67
+ args = (0...arity.abs-1).to_a
68
+ catch(:done) do
69
+ args.empty? ? object.send(meth) : object.send(meth, *args)
70
+ end
71
+ end
72
+ set_trace_func(nil)
73
+ fmt_params = lambda do |arr, arity|
74
+ arr.inject([[], 0]) do |(a, i), x|
75
+ if Array === @values[i]
76
+ [a << "*#{x}", i+1]
77
+ else
78
+ [a << x, i+1]
79
+ end
80
+ end.first
81
+ end
82
+ original_params = @params
83
+ @params ||= []
84
+ @params = @params[0,num_args]
85
+ @params = fmt_params.call(@params,arity)
86
+ if @params.length < original_params.length
87
+ @params << "&#{original_params[-1]}"
88
+ end
89
+ set_trace_func(nil)
90
+ end
91
+ end
92
+
93
+ class MethodArgsHelper
94
+ @@last_args = nil
95
+
96
+ def self.method_added(meth)
97
+ begin
98
+ o = self.allocate
99
+ rescue Exception
100
+ p $!
101
+ end
102
+ ma = MethodArgs.new
103
+ ma.output_method_info(self, o, meth, false)
104
+ @@last_args = ma.params
105
+ end
106
+
107
+ def self.get_args(sig)
108
+ class_eval <<EOS
109
+ def tester(#{sig})
110
+ end
111
+ EOS
112
+ @@last_args
113
+ end
114
+ end
115
+
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ferb
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.5"
5
+ platform: ruby
6
+ authors:
7
+ - Jim Powers
8
+ autorequire: erb
9
+ bindir: bin
10
+ cert_chain:
11
+ date: 2009-08-01 00:00:00 -04:00
12
+ default_executable:
13
+ dependencies: []
14
+
15
+ description:
16
+ email: jim@corruptmemory.com
17
+ executables: []
18
+
19
+ extensions: []
20
+
21
+ extra_rdoc_files:
22
+ - README
23
+ - LGPL30
24
+ files:
25
+ - lib/ferb.rb
26
+ - lib/method_args.rb
27
+ - lib/ferb_helper.rb
28
+ - README
29
+ - LGPL30
30
+ has_rdoc: true
31
+ homepage: http://www.corruptmemory.com/
32
+ post_install_message:
33
+ rdoc_options: []
34
+
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.0.0
42
+ version:
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: "0"
48
+ version:
49
+ requirements: []
50
+
51
+ rubyforge_project:
52
+ rubygems_version: 1.3.1
53
+ signing_key:
54
+ specification_version: 1
55
+ summary: Makes it easy to write functions that expand to arbitrary tempaltes using ERB
56
+ test_files: []
57
+