Sha256: 8dabdbb61c98788d86ea4c12d6f6f310effd3e30201210e79474fc00de8f074b
Contents?: true
Size: 564 Bytes
Versions: 18
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true describe 'GH-761', site: true do before do File.write('content/donkey.md', 'Compiled content donkey!') File.write('layouts/foo.erb', '[<%= @item.compiled_content %>]') File.write('Rules', <<EOS) compile '/**/*' do layout '/foo.*' write '/donkey.html' end layout '/foo.*', :erb EOS end it 'supports #compiled_content instead of yield' do site = Nanoc::Int::SiteLoader.new.new_from_cwd site.compile expect(File.read('output/donkey.html')).to eql('[Compiled content donkey!]') end end
Version data entries
18 entries across 18 versions & 1 rubygems