snippets / xhtml strict erb template

Language: Ruby - First posted by dgn110 on 2007-11-20 16:36 (1 year)
Link to the snippet: http://www.friendsnippets.org/snippet/121/

simple xhtml template for erb

 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") )
In order to post a comment, you should have a friendsnippet account. Please sign-in.

0 comments

Nov '07
  • simple xhtml template for erb

Common Tags



snippet History

Nov '07