Sha256: b385f102dba6ead7f4311a4954af3ef9c09a351b73e469ea2efcf7a771d7a8c3
Contents?: true
Size: 453 Bytes
Versions: 6
Compression:
Stored size: 453 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class Markaby < Nanoc::Filter requires 'markaby' # Runs the content through [Markaby](http://markaby.rubyforge.org/). # 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
6 entries across 6 versions & 1 rubygems