module Stack module Templates class Article include Template include Parsable attr_accessor :content def initialize(*args) super parse! end def write!(*args) super end def transform(content = self.raw) self.content = super self.content end def payload super.merge({ :content => self.content }) end end end end