Sha256: 179287563f01527da899d1200eaea60cdeecc815deec81b0cc2f72c4440c4476
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 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.8.0 | lib/nanoc/filters/markaby.rb |
nanoc-3.7.5 | lib/nanoc/filters/markaby.rb |