Sha256: b5b5fae3060fe9a0fbe7b1ae75e844ffe2b6def7628f08ce64a2d701a51445a8
Contents?: true
Size: 615 Bytes
Versions: 16
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true module DocTemplate module Tags class CoreContentObjectivesTag < BlockTag TAG_NAME = 'core content objectives' TEMPLATE = 'core_content_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 Template.register_tag(Tags::CoreContentObjectivesTag::TAG_NAME, Tags::CoreContentObjectivesTag) end end
Version data entries
16 entries across 16 versions & 1 rubygems