I figured it out now I wanted to use a template in different languages (i called it markets) and each market needed to have subfolders with different names, but the same content. So here is what I came up with:
de = ["a", "b"]
en = ["a", "c"]
markets = {"de" => de, "en" => en}
markets.each do |market, subfolders|
subfolders.each do |subfolder|
proxy "#{market}/#{subfolder}/index.html", "/localizable/index.html", :lang => :"#{market}"
end
end
Which will create the following file structure:
- de
- a/index.html
- b/index.html
- en
- a/index.html
- c/index.html