Sha256: ea9a19798ab7086a66085af1d24415d402134c09a65b28e71f957cb4e0495314
Contents?: true
Size: 726 Bytes
Versions: 30
Compression:
Stored size: 726 Bytes
Contents
require "jsduck/tag/boolean_tag" module JsDuck::Tag class Template < BooleanTag def initialize @pattern = "template" @signature = {:long => "template", :short => "TMP"} @html_position = POS_TEMPLATE # Box with light gray background @css = <<-EOCSS .template-box { text-align: center; background-color: #eee; } EOCSS super end def to_html(context) <<-EOHTML <div class='rounded-box template-box'> <p>This is a <a href="#!/guide/components">template method</a>. a hook into the functionality of this class. Feel free to override it in child classes.</p> </div> EOHTML end end end
Version data entries
30 entries across 30 versions & 3 rubygems