Sha256: bd29dc976d3216f14f5ddec33dc01e52d08919112e58dfb559e211af9581f78a
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 Bytes
Contents
template "daytime", "v1", :since => "09:00", :to => "12:00" do "Hello World" end template "daytime", "v2", :since => "13:00", :to => "18:00" do "Hello World2" end gadget :product_link, :floating => true gadget :quick_buy, :floating => true do settings do meta :product_code, :label => "Product code", :type => :string meta :text, :label => "Text", :type => :string meta :kind, :label => "Kind", :type => :select_one, :collection => ['light', 'dark'] meta :target, :label => "Target" end context do {:kind => 'light'}.merge(meta_settings.symbolize_keys).merge(:express_link => "/products/#{meta_settings[:product_code]}/#{meta_settings[:color_code]}?express=true") end template do <<-STRING <a href="{{express_link}}" class="item product_express_box action other {{kind}} btn1"><span>{{text}}</span></a> STRING end end action :google do desc "From Google" detect do |app| '...' end end layout :home do gadgets [] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qor_dsl-0.0.5 | test/layout.rb |