Sha256: 83187f46efb33ff51882a5ee3bfdd432095fc98ec6450200a4ee71e70adcbe34
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Self # Set: The card "Head" # module Head; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-layout/set/self/head.rb"; end setting_opts group: :webpage, position: 1, rule_type_editable: false, short_help_text: "head tag content", help_text: "head tag content" module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat # when *head is rendered in the main body of a page, we escape the HTML # otherwise (most typically in the head tag, of course), we render the # HTML unescaped view :core, cache: :never do escape_in_main do nest root.card, view: :head # NOTE: that the head tag for each card is different # (different title, different style rules, etc) # so we don't cache the core of *head, but we _do_ cache some # views within each head (see all/head.rb) end end view :input do "Content can't be edited." end def escape_in_main main? ? (h yield) : yield end end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-layout/set/self/head.rb ~~
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.101.7 | tmpsets/set/mod031-card-mod-layout/self/head.rb |
card-1.101.6 | tmpsets/set/mod031-card-mod-layout/self/head.rb |