From 5ee15661dbc2da70927f588e310315233aff6eea Mon Sep 17 00:00:00 2001
From: murphy
Date: Mon, 10 Apr 2006 03:06:50 +0000
Subject: Large update: Scanners for HTML, RHTML and Nitro-XHTML added.
CSS style changes/enhancments (mainly the new background color for inline code, affects all Ruby code.)
Demos and tests adjusted.
Plugin: new PluginHost::default method.
Scanner:
- New setup method
- ability to re-use a scanner
- ability to keep the tokens
- minor changes to token caching and string flattening
Encoder: Error if token content is neither String nor Symbol.
HTML encoder:
- more warnings for unclosed tokens
- output now UTF-8
Ruby Scanner:
- bug: symbols before => now do not include =; {:foo=>bar} is valid Ruby code
- try to close all open tokens
- constants now all with specific namespace (for speed, I hope)
Styles: new :entity/en class.
Test suite now gives hinted HTML output.
---
bench/example.xhtml | 376 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 376 insertions(+)
create mode 100644 bench/example.xhtml
(limited to 'bench/example.xhtml')
diff --git a/bench/example.xhtml b/bench/example.xhtml
new file mode 100644
index 0000000..a08cf75
--- /dev/null
+++ b/bench/example.xhtml
@@ -0,0 +1,376 @@
+
+
+
+ Error
+
+
+
+ Error
+
+
+
+ Path: #{path}
+ #{CGI.escapeHTML(error.to_s)}
+
+
+
+ In file
'#{error.hot_file}' #{error.hot_file =~ /\.xhtml$/ ? '(line numbering is aproximate due to template transformation)' : nil}:
+
+
+
#{line}
+
+
#{line}
+
+
+
+
+
+
+
+
+
#{line}
+
+
#{line}
+
+
+
+
+
+
+
+
+
+
+
Parameters: #{request.params.reject{ |k,v| k == :__RELOADED__ }.inspect}
+
Cookies: #{request.cookies.inspect}
+
Headers:
#{request.headers.collect { |k, v| "#{k} => #{v}" }.join('
')}
+
+
+
+
+
Headers: #{request.response_headers.inspect}
+
Cookies: #{request.response_cookies.inspect}
+
+
+
+
+
Values: #{session.inspect}
+
+
+
+ Powered by Nitro version #{Nitro::Version}
+
+
+
+
+
+
+
+ Show editable
+ #{form_for @obj, :action => "#{base}/save", :cancel => "#{base}/list", :all => true}
+
+ Show all
+ #{form_for @obj, :action => "#{base}/save", :cancel => "#{base}/list"}
+
+
+#{form_for(@%name%)}
+
+
+ #{"%plural%".humanize}
+
+
+
+
+
+
+ Home > System > #{"%plural%".humanize}
+ New #{"%name%".humanize}
+
+
+
+
+
+
+
+
+
+
+ Show editable
+ #{form_for @obj, :action => "#{base}/save", :cancel => "#{base}/list", :all => true, :enctype => "multipart/form-data"}
+
+ Show all
+ #{form_for @obj, :action => "#{base}/save", :cancel => "#{base}/list", :enctype => "multipart/form-data"}
+
+
+
+
+
+
+
+
+
+ Search method is not implemented for this object
+
+
+
+
+
+
+
+ View %name%
+
+
+ #{@obj.to_yaml}
+
+
+Access denied
+
+
+ Home > System
+
+ Og managed classes
+
+
+
+ Class |
+ Count |
+ Cleanup |
+ Properties |
+
+
+
+ #{c.name} |
+ #{c.count} |
+ delete |
+ destroy |
+ #{c.properties.values.join(', ')} |
+
+
+
+
+ System configuration
+
+
+
+ Name |
+ Value |
+ Type |
+ Description |
+
+
+
+ #{s.owner}.#{s.name} |
+ #{s.value.inspect} |
+ #{s.type} |
+ #{s.options[:doc]} |
+
+
+
+
+
+
+
+
+ Test
+
+
+
+
+
+
+
+hello
+Hello #{username}
+
+how do you feel?
+
+Here is your Token: #{token}
+
+
+
+
Questions with Tags: #{@tags.join(" ")}
+
+ 0 ?>
+
+ Too many results for that Tag, please reduce the number by using one of the following Tags:
+ #{cloud_of(@qtags)}
+
+
+
+
+
+
+ #{excerpt}
+
+
#{q.answers.size.to_i} answers
+
+
+
+
+
+
+
+ 0 ?>
+
Tips with Tags: #{@tags.join(" ")}
+
+ Too many results for that Tag, please reduce the number by using one of the following Tags:
+ #{cloud_of(@ttags)}
+
+
+
+
+
+
+ #{excerpt}
+
+
+
+
+
+
+ 0 ?>
+
Tutorials with Tags: #{@tags.join(" ")}
+
+ Too many results for that Tag, please reduce the number by using one of the following Tags:
+ #{cloud_of(@tuttags)}
+
+
+
+
+
+
+ #{excerpt}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.1