# Define a filter for adding Dokieli annotations Nanoc::Filter.define(:scholar_dokieli) do |content, params| content = content.dup # Add Dokieli scripts at the end of the
content.gsub! %r{\<\/head\>} do |match| <<-HTML HTML end # Add Dokieli actions at the end of the