template do "Hello World" 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 {{text}} STRING end end action :google do desc "From Google" detect do |app| '...' end end layout :home do gadgets [] end