Sha256: 2dd6998a28f29ff8ffbe17f4ddae7ffa72415f5a2c8e2210a2dad5bfd01f14e8

Contents?: true

Size: 550 Bytes

Versions: 16

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module DocTemplate
  module Tags
    class SourceTag < BaseTag
      TAG_NAME = 'source'
      TEMPLATE = 'source.html.erb'

      def parse(node, opts = {})
        # we have to collect all the next siblings until next activity-metadata
        content = content_until_break node
        content = parse_nested content.to_s, opts
        @content = parse_template content, TEMPLATE

        replace_tag node
        self
      end
    end
  end

  Template.register_tag(Tags::SourceTag::TAG_NAME, Tags::SourceTag)
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 lib/doc_template/tags/source_tag.rb
lcms-engine-0.5.4 lib/doc_template/tags/source_tag.rb
lcms-engine-0.5.3 lib/doc_template/tags/source_tag.rb
lcms-engine-0.5.2 lib/doc_template/tags/source_tag.rb
lcms-engine-0.5.1 lib/doc_template/tags/source_tag.rb
lcms-engine-0.5.0 lib/doc_template/tags/source_tag.rb
lcms-engine-0.4.2 lib/doc_template/tags/source_tag.rb
lcms-engine-0.4.1 lib/doc_template/tags/source_tag.rb
lcms-engine-0.4.0 lib/doc_template/tags/source_tag.rb
lcms-engine-0.3.1 lib/doc_template/tags/source_tag.rb
lcms-engine-0.1.4 lib/doc_template/tags/source_tag.rb
lcms-engine-0.3.0 lib/doc_template/tags/source_tag.rb
lcms-engine-0.1.3 lib/doc_template/tags/source_tag.rb
lcms-engine-0.2.0 lib/doc_template/tags/source_tag.rb
lcms-engine-0.1.2 lib/doc_template/tags/source_tag.rb
lcms-engine-0.1.0 lib/doc_template/tags/source_tag.rb