module MasterView module Directives class TestDirective < MasterView::DirectiveBase def priority DirectivePriorities::Low end def stag(dcs) ret = [] ret << 'stag' ret << dcs.render ret << 'stagend' end def characters(dcs) ret = [] ret << 'char' ret << dcs.render end def comment(dcs) ret = [] ret << 'com' ret << dcs.render end def cdata(dcs) ret = [] ret << 'cdata' ret << dcs.render end def etag(dcs) ret = [] ret << 'etag' ret << dcs.render ret << 'etagend' end def child_title_stag(dcs) ret = [] ret << 'desctitle' ret << dcs.render end def child_title_etag(dcs) dcs.context[:tag].content = @attribute_value ret = [] ret << dcs.render end end end end