Module: Card::Set::Type::Html::HtmlFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod004-format/type/html.rb,
platypus/tmp/set/gem-defaults/mod031-layout/type/html.rb

Instance Method Summary collapse

Instance Method Details

#input_typeObject



27
28
29
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/html.rb', line 27

def input_type
  :ace_editor
end

deprecated; here to support old “*main menu” html cards in existing decks



10
11
12
13
14
15
16
# File 'platypus/tmp/set/gem-defaults/mod031-layout/type/html.rb', line 10

view :navbar_links, perms: :none do
  wrap_with :ul, class: "navbar-nav" do
    item_links.map do |link|
      wrap_with(:li, class: "nav-item") { link }
    end.join "\n"
  end
end

#view: one_line_contentObject



31
32
33
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/html.rb', line 31

view :one_line_content, wrap: {} do
  raw_one_line_content
end