仲買人アプリのテンプレートを動的にループしたい yaml ファイルにプロジェクトのリストがありますが、より動的に実行できる/すべきかどうか、またはその方法がわかりません。
私は持っている:
data.projects.each do |f|
proxy "/work/#{f[:name].parameterize}.html", "/work/template.html",
:locals => { name: f[:name], client: f[:client], ... } #would like to dynamically pull in keys as locals.
end
ignore "/work/template.html"
ヤムル:
- name: Acme Website
client: Acme Inc
overview: "Cupcake ipsum dolor sit amet wafer gummi bears pudding applicake. Jujubes brownie powder. Sweet roll powder gingerbread gummies. Cupcake ice cream sweet roll pie lollipop. Jelly-o jelly-o apple pie chupa chups jelly jujubes gingerbread. Icing carrot cake powder chupa chups. Pudding sweet roll jelly-o muffin faworki biscuit. Marzipan marshmallow cake tiramisu caramels bear claw carrot cake cotton candy. Toffee danish sweet roll. Cookie topping powder toffee ice cream muffin dragée. Soufflé caramels apple pie chocolate cake cookie cake. Macaroon tiramisu halvah soufflé. Dessert toffee halvah chocolate cake bear claw."
skills:
- design
- development
- branding
- ecommerce
stack:
- middleman
- branding
- design