Sha256: ca8b63c5e9124b470b2c3c65441d39776e6b3e4519e4508cd3af52e3458fb162
Contents?: true
Size: 903 Bytes
Versions: 3
Compression:
Stored size: 903 Bytes
Contents
class ErectorTemplate < Erector::Widget needs :user, :flash => nil def content html do head do title "Benchmarking Templates" link :rel => 'stylesheet', :href => '/stylesheet/application.css' link :rel => 'stylesheet', :href => '/stylesheet/ie.css' end body :class => self.class.to_s.underscore do div :id => :wrapper, :class => 'line' do if flash div :id => 'flash', :class => 'inner' do text flash end end dl :class => ['inner', 'user_info'] do dt 'username' dd user.username dt 'email' dd user.email dt 'name' dd user.name dt 'number of assigned tasks' dd rand(20) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
garterbelt-0.0.4 | spec/benchmark/templates/erector.rb |
garterbelt-0.0.3 | spec/benchmark/templates/erector.rb |
garterbelt-0.0.2 | spec/benchmark/templates/erector.rb |