all repos — h3rald @ 6f084e78f6a1cbccf078e4878f84be4f532973e9

The sources of https://h3rald.com

lib/glyph_filter.rb

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
require 'rubygems'
require 'glyph'

class GlyphFilter < Nanoc3::Filter
	identifier :glyph

	def run(content, args)
		doc = %{
		textile[
				section[
					#{content}
				]
		]}
		Glyph.filter doc
	end

end