Skip to content

Instantly share code, notes, and snippets.

@e10a
Last active April 25, 2024 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e10a/5d77b0e52f27398262a087661d2c8389 to your computer and use it in GitHub Desktop.
Save e10a/5d77b0e52f27398262a087661d2c8389 to your computer and use it in GitHub Desktop.
slim - loops
- @footer_headers = [ \
{:link => 'link1', :name => 'name1' },
{:link => 'link1', :name => 'name1' },
{:link => 'link1', :name => 'name1' }]
div
- @footer_headers.each do | row |
- var = ""
- var = "focus" if row[:focus]
span class="#{var}"
a href="#{row[:link]}" = row[:name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment