# along with this program. If not, see <https://www.gnu.org/licenses/>.
preprocess do
+ # Remove dead annex keys from processing
+ @items.delete_if do |item|
+ l = File.readlink(item.raw_filename)
+ true if !File.exists?(item.raw_filename) and l =~ %r{/annex/objects/}
+ rescue Errno::EINVAL
+ end
+
commit = nil
Open3.popen2("git", "rev-parse", "HEAD") do |stdin, stdout, result|
stdin.close
write @item.identifier.without_ext + '.css'
end
-passthrough '/**/*'
+compile '/**/*' do
+ filter :copybin if @item.binary?
+ write @item.identifier.to_s
+end
+
layout '/**/*.xsl', :xsl
layout '/**/*', :erb