Sha256: a011f0cb09967cbe8328062c445b92573a8096359a73130d6c269f0286488133

Contents?: true

Size: 468 Bytes

Versions: 16

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module DocTemplate
  module Tags
    class GlsTag < BaseTag
      TAG_NAME = 'gls'
      TEMPLATE = 'gls.html.erb'

      def parse(node, opts = {})
        parsed_content = parse_template({ content: opts[:value] }, TEMPLATE)
        node.inner_html = node.inner_html.sub DocTemplate::FULL_TAG, parsed_content
        @result = node
        self
      end
    end
  end

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

Version data entries

16 entries across 16 versions & 1 rubygems

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