Skip to content

Instantly share code, notes, and snippets.

@lachie
Forked from lachlanhardy/gist:76696
Created March 10, 2009 03:24
Show Gist options
  • Save lachie/76701 to your computer and use it in GitHub Desktop.
Save lachie/76701 to your computer and use it in GitHub Desktop.
- if @items
- @items.each do |item|
- name = item.gsub(/views\/.+\/(.+).haml/, '\1')
- unless name == "index" || name[/^hide-/]
%p do some stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment