Sha256: c0b19457304bc9032fcb9fed6986f0ec88e61d7598e9aaf536754ceb16ad603b

Contents?: true

Size: 617 Bytes

Versions: 16

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

module DocTemplate
  module Tags
    class LanguageArtsObjectivesTag < BlockTag
      TAG_NAME = 'language arts objectives'
      TEMPLATE = 'language_arts_objectives.html.erb'

      def parse(node, opts = {})
        nodes = block_nodes node
        nodes.each(&:remove)

        params = {
          content: parse_nested(nodes.map(&:to_html).join, opts)
        }
        @content = parse_template params, TEMPLATE
        replace_tag node
        self
      end
    end
  end

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

Version data entries

16 entries across 16 versions & 1 rubygems

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