Skip to content

Instantly share code, notes, and snippets.

@benaskins
Forked from lachie/gist:76701
Created March 10, 2009 03:55
Show Gist options
  • Save benaskins/76716 to your computer and use it in GitHub Desktop.
Save benaskins/76716 to your computer and use it in GitHub Desktop.
- if @items
- @items.collect { |item| item.gsub(/views\/.+\/(.+).haml/, '\1') }.each do |name|
- 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