Created
February 8, 2012 19:55
-
-
Save henrygarner/1772834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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