lib/trenni/template.rb in trenni-3.3.0 vs lib/trenni/template.rb in trenni-3.4.0
- old
+ new
@@ -31,9 +31,13 @@
return nil
else
return self
end
end
+
+ def capture(*args, &block)
+ self.append Template.capture(*args, &block)
+ end
end
class Template
# Returns the output produced by calling the given block.
def self.capture(*args, &block)