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

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod008-card-mod-format/type/html.rb,
card/tmpsets/set/mod030-card-mod-layout/type/html.rb,
card/tmpsets/set/mod007-card-mod-format/type/html.rb,
card/tmpsets/set/mod031-card-mod-layout/type/html.rb

Instance Method Summary collapse

Instance Method Details

#input_typeObject



27
28
29
# File 'card/tmpsets/set/mod008-card-mod-format/type/html.rb', line 27

def input_type
  :ace_editor
end


18
19
20
# File 'card/tmpsets/set/mod030-card-mod-layout/type/html.rb', line 18

def item_links _args={}
  raw(render_core).split(/[,\n]/)
end

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



10
11
12
13
14
15
16
# File 'card/tmpsets/set/mod030-card-mod-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 'card/tmpsets/set/mod008-card-mod-format/type/html.rb', line 31

view :one_line_content, wrap: {} do
  raw_one_line_content
end