Sha256: 572df9d5d52ff38c08d76efcf8cde4e5654d419481214b31058c3d0f60d0e68b

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

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

action :yahoo do
  desc "From Yahoo"
  detect do |app|
    '...'
  end
end

layout :home do
  gadgets []
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
qor_dsl-0.3.3 test/layout.rb
qor_dsl-0.3.2 test/layout.rb
qor_dsl-0.3.1 test/layout.rb
qor_dsl-0.3.0 test/layout.rb
qor_dsl-0.2.1 test/layout.rb
qor_dsl-0.2.0 test/layout.rb
qor_dsl-0.1.5 test/layout.rb
qor_dsl-0.1.4 test/layout.rb
qor_dsl-0.1.3 test/layout.rb
qor_dsl-0.1.1 test/layout.rb
qor_dsl-0.1.0 test/layout.rb