Changeset 200
- Timestamp:
- 09/17/2007 16:14:53 (15 months ago)
- Files:
-
- 1 modified
-
trunk/lib/camping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/camping.rb
r191 r200 8 8 p end;def errors_for o;ul.errors{o.errors.each_full{|x|li x}}if o.errors.any?end 9 9 end;module Base;include Helpers;attr_accessor:input,:cookies,:env,:headers,:body, 10 :status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new {},self10 :status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new({},self) 11 11 s=m.capture{send(*a,&b)};s=m.capture{send(:layout){s}} if /^_/!~a[0].to_s and m. 12 12 respond_to?:layout;s end;def r s,b,h={};@status=s;@headers.merge!h;@body=b end
