Join GitHub today
Allow querying path in compilation rule #964
The following now behaves as expected:
compile '/**/*' do filter :relativize_paths, type: :html unless rep.path.nil? write item.identifier.without_ext + '.html' end
This happens because compilation is now done in three steps:
Previously, there were only two steps:
The rule memory depends on the paths, and so the extra step is necessary.