Hi,
I’m new to Middleman. I’m trying to understand the point of the Padrino helpers eg image_tag
. It seems that
= image_tag 'padrino.png', width: '35', class: 'logo'
will output the same thing as
%img.logo{alt: "Padrino", src: "/images/padrino.png", width: "35"}/
Is there a reason that one would be preferred over the other? Is it a preference, or am I missing some functionality with image_tag
. I at first thought it was for allowing asset_hash
to rewrite the src url, but found that asset_hash
works either way.
Thanks in advance for helping me understand.