Sha256: 0232f4e99328e7cbc89496fb695c372cf782f1f2dbbc090344f888dd10ebeabb

Contents?: true

Size: 782 Bytes

Versions: 8

Compression:

Stored size: 782 Bytes

Contents

#!/usr/bin/env ruby

preprocess do
  @items.each do |item|
    ConrefFS.apply_attributes(@config, item, :default)
  end
end

ignore '/**/*.html'

compile '/**/*.md' do
  filter :'conref-fs-filter'
  if item[:filename] =~ /retrieve/
    layout '/retrieve.*'
  elsif item[:filename] =~ /_children/
    layout '/children.*'
  elsif item[:filename] =~ /asterisk/
    layout '/asterisk.*'
  else
    layout '/default.*'
  end
end

compile '/multiple/single_var.md', :rep => :X do
  filter :'conref-fs-filter'
  filter :erb
  layout '/default.*'
end

route '/**/*.md' do
  item.identifier.without_ext + '/index.html'
end

route '/multiple/single_var.md', :rep => :X do
  item.identifier.without_ext + '_x/index.html'
end

route '/**/*' do
  item.identifier.to_s
end

layout '/**/*', :erb

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-conref-fs-0.6.10 test/fixtures/Rules
nanoc-conref-fs-0.6.9 test/fixtures/Rules
nanoc-conref-fs-0.6.8 test/fixtures/Rules
nanoc-conref-fs-0.6.7 test/fixtures/Rules
nanoc-conref-fs-0.6.6 test/fixtures/Rules
nanoc-conref-fs-0.6.5 test/fixtures/Rules
nanoc-conref-fs-0.6.4 test/fixtures/Rules
nanoc-conref-fs-0.6.3 test/fixtures/Rules