I’m trying to generate an XML file. I’ve got some tags that repeat numerically like so:
# 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’m given “Foo” and the ending number (435 in this case) as parameters. How do I go about telling HAML to do this?
Thanks
EDIT: Forgot to mention, the leading zeros are important.
or
Proof: