Sha256: 8d5f7d448a1f215fce0d5854be58f8f06200cccb892dd8156f0705454d73324d
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class Markaby < Nanoc::Filter requires 'markaby' # Runs the content through [Markaby](http://markaby.github.io/). # This method takes no options. # # @param [String] content The content to filter # # @return [String] The filtered content def run(content, params = {}) # Get result ::Markaby::Builder.new(assigns).instance_eval(content).to_s end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.7.3 | lib/nanoc/filters/markaby.rb |
nanoc-3.7.2 | lib/nanoc/filters/markaby.rb |