Sha256: c7325e329158dac698a8632eeeec6d111f028213364e9e2e3257d97315e91c6b

Contents?: true

Size: 1.18 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
card-1.101.5 tmpsets/set/mod030-card-mod-layout/self/head.rb
card-1.101.4 tmpsets/set/mod030-card-mod-layout/self/head.rb
card-1.101.3 tmpsets/set/mod030-card-mod-layout/self/head.rb
card-1.101.2 tmpsets/set/mod030-card-mod-layout/self/head.rb
card-1.101.1 tmpsets/set/mod030-card-mod-layout/self/head.rb
card-1.101.0 tmpsets/set/mod030-card-mod-layout/self/head.rb