Sha256: aa6ee3e719906624c4d933a914ddd10485c9a17ef027dbaffe6ad52347abec4d

Contents?: true

Size: 977 Bytes

Versions: 27

Compression:

Stored size: 977 Bytes

Contents

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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
masterview-0.0.10 lib/masterview/directives/testfilter.rb
masterview-0.0.11 lib/masterview/directives/testfilter.rb
masterview-0.0.12 lib/masterview/directives/testfilter.rb
masterview-0.0.13 lib/masterview/directives/testfilter.rb
masterview-0.0.2 lib/masterview/directives/testfilter.rb
masterview-0.0.17 lib/masterview/directives/testfilter.rb
masterview-0.0.16 lib/masterview/directives/testfilter.rb
masterview-0.0.15 lib/masterview/directives/testfilter.rb
masterview-0.0.14 lib/masterview/directives/testfilter.rb
masterview-0.0.7 lib/masterview/directives/testfilter.rb
masterview-0.0.8 lib/masterview/directives/testfilter.rb
masterview-0.1.0 lib/masterview/directives/testfilter.rb
masterview-0.2.0 lib/masterview/directives/testfilter.rb
masterview-0.0.9 lib/masterview/directives/testfilter.rb
masterview-0.1.1 lib/masterview/directives/testfilter.rb
masterview-0.1.2 lib/masterview/directives/testfilter.rb
masterview-0.1.3 lib/masterview/directives/testfilter.rb
masterview-0.1.5 lib/masterview/directives/testfilter.rb
masterview-0.2.1 lib/masterview/directives/testfilter.rb
masterview-0.2.3 lib/masterview/directives/testfilter.rb