Sha256: 3b92225330c7bd58553259eab77d7fc00af88c4504e45f642ec3ade983133a1c
Contents?: true
Size: 472 Bytes
Versions: 18
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true describe 'GH-913', site: true, stdio: true do before do File.write('content/hello.html', 'hi!') File.write('Rules', <<EOS) postprocess do items.map(&:compiled_content) end compile '/**/*' do write item.identifier.without_ext + '.html' end layout '/foo.*', :erb EOS end example do 2.times do Nanoc::CLI.run(%w[compile]) expect(File.read('output/hello.html')).to eq('hi!') end end end
Version data entries
18 entries across 18 versions & 1 rubygems