From 7c8d5e9040490162d8048eddb25f95bdef2f4c90 Mon Sep 17 00:00:00 2001 From: Paul Iannetta Date: Mon, 10 Jun 2019 09:04:12 +0200 Subject: initial commit --- lib/filters/rbstfilter.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/filters/rbstfilter.rb (limited to 'lib/filters') diff --git a/lib/filters/rbstfilter.rb b/lib/filters/rbstfilter.rb new file mode 100644 index 0000000..8a415d8 --- /dev/null +++ b/lib/filters/rbstfilter.rb @@ -0,0 +1,11 @@ +module RbSTFilter + class RbST < Nanoc::Filter + identifier :rst + + require 'rbst' + + def run(content, params = {}) + ::RbST.new(content).to_html + end + end +end -- cgit v1.2.3-54-g00ecf