Skip to content

Instantly share code, notes, and snippets.

@henrygarner
Created February 8, 2012 19:55
Show Gist options
  • Save henrygarner/1772834 to your computer and use it in GitHub Desktop.
Save henrygarner/1772834 to your computer and use it in GitHub Desktop.
Ducklink::Decorator.configure do
group do
template 'http://affiliate.example.com?clickref={{reference}}&url={{url}}#campaign={{campaign}}'
host 'buy.example.com', 'shop.example.com' do |context|
set :campaign, 'campaign1'
set :reference, context[:reference]
end
host 'another.com' do |context|
set :campaign, 'campaign2'
set :reference, context[:reference]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment