In your rules file, use the following:
route '*' do if item.binary? item.identifier.chop + '.' + item[:extension] elsif item[:status] '/' + item[:status] + item.identifier.chop + '.' + item[:extension] else item.identifier + 'index.html' end end
This will create a directory for each of your statuses. For example: source file starting with
will be created in the / testing / folder.
To delete the remaining files after compilation, you can use "nanoc prune" (new in nanoc 3.3.x).
source share