Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
task :compile do Nanoc::NotificationCenter.on(:compilation_ended) do |rep| item = rep.respond_to?(:page) ? rep.page : rep.asset puts "We have compiled #{item.path}:#{rep.name}!" if rep.compiled? end site = Nanoc::Site.new(YAML.load_file('config.yaml')) site.load_data site.compiler.run(nil, :even_when_not_outdated => true) end
This paste will be private.
From the Design Piracy series on my blog: