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