snippet: view plain - save this
1 template = [
2 '<!DOCTYPE html',
3 'PUBLIC "-//W3C/DTD XHTML 1.0 Strict//EN"',
4 'http://www.w3.org/TRxhtml1/DTD/xhtml1-strict.dtd">',
5 '<html>',
6 "<head>",
7 "<title><%= html_title %></title>",
8 "</head>",
9 "<body>",
10 "<%= html_body %>",
11 "</body>",
12 "</html>"
13 ]
14
15 template = ERB.new( template.join("\n") )

0 comments