Sha256: c1b10500c7f9cdcdde8aff8af6a051aab43ad7da7a72e63f38f955c718cd6946
Contents?: true
Size: 1.18 KB
Versions: 1
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/ezl5238/dev/decko/gem/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/ezl5238/dev/decko/gem/mod/layout/set/self/head.rb ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.102.0 | tmpsets/set/mod031-layout/self/head.rb |