projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Froze rails gems
[depot.git]
/
vendor
/
rails
/
actionpack
/
lib
/
action_view
/
template_handlers
/
builder.rb
1
require
'builder'
2
3
module
ActionView
4
module
TemplateHandlers
5
class
Builder
<
TemplateHandler
6
include
Compilable
7
8
def
compile
(
template
)
9
"_set_controller_content_type(Mime::XML);"
+
10
"xml = ::Builder::XmlMarkup.new(:indent => 2);"
+
11
"self.output_buffer = xml.target!;"
+
12
template
.
source
+
13
";xml.target!;"
14
end
15
end
16
end
17
end