Sha256: 30002dcbc6e5a01cf75d74ab710f76846b6c5aa7e620babdf8a7848a017e446a
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
require 'beryl/view' require 'widgets/homepage' require 'widgets/page_x' require 'widgets/not_found' class View < Beryl::View def render case state[:route] when :homepage Homepage.new.render(state) when :page_x PageX.new.render(state) else NotFound.new.render(state) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beryl-0.3.1 | app/view.rb |
beryl-0.3.0 | app/view.rb |