Sha256: 4caa9963698d58fd33c2a69e8610377dbd73fde55460de4fd9bfc99c2be42faa
Contents?: true
Size: 823 Bytes
Versions: 3
Compression:
Stored size: 823 Bytes
Contents
setting_opts group: :webpage, position: 1, rule_type_editable: false, short_help_text: "head tag content", help_text: "head tag content" format :html do # 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 view :bar_bottom do end def escape_in_main main? ? (h yield) : yield end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
card-mod-layout-0.18.1 | set/self/head.rb |
card-mod-layout-0.18.0 | set/self/head.rb |
card-mod-layout-0.17.0 | set/self/head.rb |