I am trying to create an XML file. I have several tags that repeat like this:
# necessary XML namespace and metadata stuff ...
% img {: src => "Foo002.jpg # full"} /
% img {: src => "Foo003.jpg # full"} /
% img {: src => "Foo004.jpg # full"} /
% img {: src => "Foo005.jpg # full"} /
# and so on for a few hundred lines
% img {: src => "Foo435.jpg # full"} /
I was given "Foo" and a finite number (435 in this case) as parameters. How do I talk about this HAML?
thank
EDIT . Forgetting the mention, leading zeros are important.
source
share