public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
use %> not %%>
ezmobius (author)
Mon Mar 24 19:55:45 -0700 2008
commit  7692d2d255e5136019354cdf4253f471ba54c53b
tree    15e2b9231f72472463dccbaf8dbc9a1b90a7c3e2
parent  499843be741063a92e84240ed38b446f220b3725
...
1
2
3
4
 
5
6
7
...
129
130
131
132
133
134
135
 
 
 
 
136
137
 
138
139
140
141
142
143
 
 
 
 
144
145
146
147
148
149
150
151
 
 
 
 
152
153
154
155
156
157
158
159
 
 
 
 
160
161
162
163
 
164
165
 
166
167
168
169
170
171
172
173
174
 
 
 
 
175
176
 
177
178
179
 
180
181
182
183
184
185
186
187
 
 
 
188
189
190
191
192
 
193
194
195
...
207
208
209
210
 
211
212
213
...
1
2
3
 
4
5
6
7
...
129
130
131
 
 
 
 
132
133
134
135
136
 
137
138
139
 
 
 
 
140
141
142
143
144
145
146
147
 
 
 
 
148
149
150
151
152
153
154
155
 
 
 
 
156
157
158
159
160
161
162
 
163
164
 
165
166
167
168
169
170
 
 
 
 
171
172
173
174
175
 
176
177
178
 
179
180
181
182
183
184
 
 
 
185
186
187
188
189
190
191
 
192
193
194
195
...
207
208
209
 
210
211
212
213
0
@@ -1,7 +1,7 @@
0
 <html>
0
 <head>
0
   <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
0
- <title><%%= @exception_name %%></title>
0
+ <title><%%= @exception_name %></title>
0
   <style type="text/css" media="screen">
0
     body {
0
       font-family:arial;
0
@@ -129,67 +129,67 @@
0
   <div class="internalError">
0
     
0
     <div class="header">
0
- <h1><%%= @exception_name %%> <sup class="error_<%%= @exception.class::STATUS %%>"><%%= @exception.class::STATUS %%></sup></h1>
0
- <%% if show_details = ::Merb::Config[:exception_details] -%%>
0
- <h2><%%= @exception.message %%></h2>
0
- <%% else -%%>
0
+ <h1><%%= @exception_name %> <sup class="error_<%%= @exception.class::STATUS %>"><%%= @exception.class::STATUS %></sup></h1>
0
+ <%% if show_details = ::Merb::Config[:exception_details] -%>
0
+ <h2><%%= @exception.message %></h2>
0
+ <%% else -%>
0
         <h2>Sorry about that...</h2>
0
- <%% end -%%>
0
+ <%% end -%>
0
       <h3>Parameters</h3>
0
       <ul>
0
- <%% params[:original_params].each do |param, value| %%>
0
- <li><strong><%%= param %%>:</strong> <%%= value.inspect %%></li>
0
- <%% end %%>
0
- <%%= "<li>None</li>" if params[:original_params].empty? %%>
0
+ <%% params[:original_params].each do |param, value| %>
0
+ <li><strong><%%= param %>:</strong> <%%= value.inspect %></li>
0
+ <%% end %>
0
+ <%%= "<li>None</li>" if params[:original_params].empty? %>
0
       </ul>
0
       
0
       <h3>Session</h3>
0
       <ul>
0
- <%% params[:original_session].each do |param, value| %%>
0
- <li><strong><%%= param %%>:</strong> <%%= value.inspect %%></li>
0
- <%% end %%>
0
- <%%= "<li>None</li>" if params[:original_session].empty? %%>
0
+ <%% params[:original_session].each do |param, value| %>
0
+ <li><strong><%%= param %>:</strong> <%%= value.inspect %></li>
0
+ <%% end %>
0
+ <%%= "<li>None</li>" if params[:original_session].empty? %>
0
       </ul>
0
       
0
       <h3>Cookies</h3>
0
       <ul>
0
- <%% params[:original_cookies].each do |param, value| %%>
0
- <li><strong><%%= param %%>:</strong> <%%= value.inspect %%></li>
0
- <%% end %%>
0
- <%%= "<li>None</li>" if params[:original_cookies].empty? %%>
0
+ <%% params[:original_cookies].each do |param, value| %>
0
+ <li><strong><%%= param %>:</strong> <%%= value.inspect %></li>
0
+ <%% end %>
0
+ <%%= "<li>None</li>" if params[:original_cookies].empty? %>
0
       </ul>      
0
     </div>
0
     
0
- <%% if show_details %%>
0
+ <%% if show_details %>
0
     <table class="trace">
0
- <%% @exception.backtrace.each_with_index do |line, index| %%>
0
+ <%% @exception.backtrace.each_with_index do |line, index| %>
0
         <tbody class="close">
0
           <tr class="file">
0
             <td class="expand">
0
             </td>
0
             <td class="path">
0
- <%%= (line.match(/^([^:]+)/)[1] rescue 'unknown').sub(/\/((opt|usr)\/local\/lib\/(ruby\/)?(gems\/)?(1.8\/)?(gems\/)?|.+\/app\/)/, '') %%>
0
- <%% unless line.match(/\.erb:/) %%>
0
- in "<strong><%%= line.match(/:in `(.+)'$/)[1] rescue '?' %%></strong>"
0
- <%% else %%>
0
+ <%%= (line.match(/^([^:]+)/)[1] rescue 'unknown').sub(/\/((opt|usr)\/local\/lib\/(ruby\/)?(gems\/)?(1.8\/)?(gems\/)?|.+\/app\/)/, '') %>
0
+ <%% unless line.match(/\.erb:/) %>
0
+ in "<strong><%%= line.match(/:in `(.+)'$/)[1] rescue '?' %></strong>"
0
+ <%% else %>
0
                 (<strong>ERB Template</strong>)
0
- <%% end %%>
0
+ <%% end %>
0
             </td>
0
             <td class="line">
0
- <a href="txmt://open?url=file://<%%=file = (line.match(/^([^:]+)/)[1] rescue 'unknown')%%>&amp;line=<%%= lineno = line.match(/:([0-9]+):/)[1] rescue '?' %%>"><%%=lineno%%></a>&nbsp;
0
+ <a href="txmt://open?url=file://<%%=file = (line.match(/^([^:]+)/)[1] rescue 'unknown')%>&amp;line=<%%= lineno = line.match(/:([0-9]+):/)[1] rescue '?' %>"><%%=lineno%></a>&nbsp;
0
             </td>
0
           </tr>
0
           <tr class="source">
0
             <td class="collapse">
0
             </td>
0
- <td class="code" colspan="2"><%% (__caller_lines__(file, lineno, 5) rescue []).each do |llineno, lcode, lcurrent| %%>
0
-<a href="txmt://open?url=file://<%%=file%%>&amp;line=<%%=llineno%%>"><%%= llineno %%></a><%%='<em>' if llineno==lineno.to_i %%><%%= lcode.size > 90 ? CGI.escapeHTML(lcode[0..90])+'<span class="more">......</span>' : CGI.escapeHTML(lcode) %%><%%='</em>' if llineno==lineno.to_i %%>
0
-<%% end %%>
0
+ <td class="code" colspan="2"><%% (__caller_lines__(file, lineno, 5) rescue []).each do |llineno, lcode, lcurrent| %>
0
+<a href="txmt://open?url=file://<%%=file%>&amp;line=<%%=llineno%>"><%%= llineno %></a><%%='<em>' if llineno==lineno.to_i %><%%= lcode.size > 90 ? CGI.escapeHTML(lcode[0..90])+'<span class="more">......</span>' : CGI.escapeHTML(lcode) %><%%='</em>' if llineno==lineno.to_i %>
0
+<%% end %>
0
 
0
 </td>
0
           </tr>
0
         </tbody>
0
- <%% end %%>
0
+ <%% end %>
0
     </table>
0
     <script type="text/javascript" charset="utf-8">
0
       // swop the open & closed classes
0
@@ -207,7 +207,7 @@
0
         }
0
       }
0
     </script>
0
- <%% end %%>
0
+ <%% end %>
0
   <div class="footer">
0
     lots of love, from <a href="#">merb</a>
0
   </div>
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@
0
 
0
   <div id="left-container">
0
     <h3>Exception:</h3>
0
- <p><%%= params[:exception] %%></p>
0
+ <p><%%= params[:exception] %></p>
0
   </div>
0
 
0
   <div id="main-container">
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@
0
 
0
   <div id="left-container">
0
     <h3>Exception:</h3>
0
- <p><%%= params[:exception] %%></p>
0
+ <p><%%= params[:exception] %></p>
0
   </div>
0
 
0
   <div id="main-container">
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,6 +6,6 @@
0
     <link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8" />
0
   </head>
0
   <body>
0
- <%%= catch_content :for_layout %%>
0
+ <%%= catch_content :for_layout %>
0
   </body>
0
 </html>
0
\ No newline at end of file

Comments

    No one has commented yet.