Skip to content

Instantly share code, notes, and snippets.

@gisikw
Created June 22, 2012 20:55
Show Gist options
  • Save gisikw/2975112 to your computer and use it in GitHub Desktop.
Save gisikw/2975112 to your computer and use it in GitHub Desktop.
get '/some_page' do
@image_urls = Dir.glob('/public/images/portfolio/*.png')
haml :some_page
end
-for image_url in @image_urls
%img{:href=>image_url}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment