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)}
+
+ Reload this page. + Go to the referer or the home page. +
+
+ + In file '#{error.hot_file}' #{error.hot_file =~ /\.xhtml$/ ? '(line numbering is aproximate due to template transformation)' : nil}: +

+ +
#{line}
+ +
#{line}
+ +
+

Stack Trace

+ + + +

Request

+ + +

Response

+ + +

Session

+ + +

+ Powered by Nitro version #{Nitro::Version} + + + + + +

Home > System > #{"%plural%".humanize} > Edit #{"%name%".humanize}

+ + 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}

+

New #{"%name%".humanize}

+
+ Search #{"%plural%".humanize}:   +
+ + + + + + + + + + + +
#{obj.to_s}#{obj.update_time.stamp(:db)}editdel
+
+ + +

Home > System > #{"%plural%".humanize}

+ New #{"%name%".humanize} +

+

+ Search #{"%plural%".humanize}:   +
+

+ + + + + + + + + + + +
#(obj.to_s)#{obj.update_time.stamp(:db)}editdel
+
+ #{@pager.navigation} +
+
+ + +

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"} + +
+ + +

Home > System > #{"%plural%".humanize} > Search for '#@query'

+

+

+ Search #{"%plural%".humanize}:   +
+

+ +

Search method is not implemented for this object

+ + + + + + + + + + + + +
#(obj.to_s)#{obj.update_time.stamp(:db)}editdel
+
+ #{@pager.navigation} +
+ +
+ + +

View %name%

+

List of %plural%

+ + #{@obj.to_yaml} + +
+Access denied + + +

Home > System

+ +

Og managed classes

+ + + + + + + + + + + + + + + + + +
ClassCountCleanupProperties
#{c.name}#{c.count}deletedestroy#{c.properties.values.join(', ')}
+ +

System configuration

+ + + + + + + + + + + + + + + + +
NameValueTypeDescription
#{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)} + +
+ +

#{q.question}

+

+ + #{excerpt} +

+

#{q.answers.size.to_i} answers

+ +
+
+ #{@qpager.navigation} +
+ +
+

no question with this/these tag(s) found

+

Ask a question here.

+
+ + + 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)} + +
+ +

#{t.title}

+

+ + #{excerpt} +

+ +
+
+ #{@tpager.navigation} +
+ + + 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)} + +
+ +

#{t.title}

+

+ + #{excerpt} +

+ +
+
+ #{@tpager.navigation} +
+ + + + +
+ + + #{t.name} + +
+ +
+ + +
+ + -- cgit v1.2.1