From 1ec049a561a2206646f95bbff66175884bbb02f5 Mon Sep 17 00:00:00 2001 From: makoto kuwata Date: Sun, 20 Mar 2011 16:25:30 +0900 Subject: [add] 'public_html/index.rhtml' --- public_html/index.rhtml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 public_html/index.rhtml diff --git a/public_html/index.rhtml b/public_html/index.rhtml new file mode 100644 index 0000000..766c97f --- /dev/null +++ b/public_html/index.rhtml @@ -0,0 +1,54 @@ +<% + page_title = 'Erubis Example Page' +%> + + + + + <%== page_title %> + + + +

<%== page_title %>

+ +

Ruby Information

+ + <% cont_names = ['RUBY_VERSION', 'RUBY_PATCHLEVEL', 'RUBY_PLATFORM', 'RUBY_RELEASE_DATE', 'RUBY_ENGINE'] %> + <% cont_names.each do |name| %> + <% if Object.const_defined?(name) %> + + + + <% end %> + <% end %> + + + +
<%== name %><%== Object.const_get(name).inspect %>
Erubis::VERSION<%== Erubis::VERSION.inspect %>
+ +

Environment Variables

+ + <% odd = false %> + <% ENV.keys.sort.each do |k| %> + <% odd != odd %> + + + + <% end %> +
<%== k %><%== ENV[k].inspect %>
+ + + -- cgit v1.2.1