Skip to content

Instantly share code, notes, and snippets.

@opatry
Created January 24, 2015 17:15
Show Gist options
  • Save opatry/240578af19c175796ebd to your computer and use it in GitHub Desktop.
Save opatry/240578af19c175796ebd to your computer and use it in GitHub Desktop.
nanoc Rules with snapshots
compile '*' do
if item[:extension] == 'css'
# don’t filter stylesheets
elsif item.binary?
# don’t filter binary items
else
filter :erb
snapshot :first
layout 'default'
snapshot :second
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment