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