Module: PageBuilder::TagHelpers
- Defined in:
- lib/pagebuilder/tag_helpers.rb,
lib/pagebuilder/tag_helpers/forms.rb,
lib/pagebuilder/tag_helpers/lists.rb,
lib/pagebuilder/tag_helpers/embeds.rb,
lib/pagebuilder/tag_helpers/tables.rb,
lib/pagebuilder/tag_helpers/text_markup.rb,
lib/pagebuilder/tag_helpers/miscellaneous.rb,
lib/pagebuilder/tag_helpers/page_structure.rb,
lib/pagebuilder/tag_helpers/pagebuilder_prefixed_helpers.rb
Overview
Helper module to make building pages easier
Available Tags collapse
- #a(content = nil, **attributes) ⇒ Object
- #abbr(content = nil, **attributes) ⇒ Object
- #address(content = nil, **attributes) ⇒ Object
- #area(**attributes) ⇒ Object
- #article(content = nil, **attributes) ⇒ Object
- #aside(content = nil, **attributes) ⇒ Object
- #audio(content = nil, **attributes) ⇒ Object
- #b(content = nil, **attributes) ⇒ Object
- #bdi(content = nil, **attributes) ⇒ Object
- #bdo(content = nil, **attributes) ⇒ Object
- #blockquote(content = nil, **attributes) ⇒ Object
- #br(**attributes) ⇒ Object
- #button(content = nil, **attributes) ⇒ Object
- #canvas(content = nil, **attributes) ⇒ Object
- #caption(content = nil, **attributes) ⇒ Object
- #checkbox(**attributes) ⇒ Object
- #cite(content = nil, **attributes) ⇒ Object
- #code(content = nil, **attributes) ⇒ Object
- #col(**attributes) ⇒ Object
- #colgroup(**attributes) ⇒ Object
- #data(content = nil, **attributes) ⇒ Object
- #datalist(content = nil, **attributes) ⇒ Object
- #dd(content = nil, **attributes) ⇒ Object
- #del(content = nil, **attributes) ⇒ Object
- #details(content = nil, **attributes) ⇒ Object
- #dfn(content = nil, **attributes) ⇒ Object
- #dialog(content = nil, **attributes) ⇒ Object
- #div(content = nil, **attributes) ⇒ Object
- #dl(**attributes) ⇒ Object
- #dt(content = nil, **attributes) ⇒ Object
- #em(content = nil, **attributes) ⇒ Object
- #email_input(**attributes) ⇒ Object
- #embed(**attributes) ⇒ Object
- #fieldset(content = nil, **attributes) ⇒ Object
- #figcaption(content = nil, **attributes) ⇒ Object
- #figure(content = nil, **attributes) ⇒ Object
- #file_input(**attributes) ⇒ Object
- #footer(content = nil, **attributes) ⇒ Object
- #form(content = nil, **attributes) ⇒ Object
- #h1(content = nil, **attributes) ⇒ Object
- #h2(content = nil, **attributes) ⇒ Object
- #h3(content = nil, **attributes) ⇒ Object
- #h4(content = nil, **attributes) ⇒ Object
- #h5(content = nil, **attributes) ⇒ Object
- #h6(content = nil, **attributes) ⇒ Object
- #header(content = nil, **attributes) ⇒ Object
- #hgroup(**attributes) ⇒ Object
- #hidden_input(**attributes) ⇒ Object
- #hr(**attributes) ⇒ Object
- #i(content = nil, **attributes) ⇒ Object
- #iframe(content = nil, **attributes) ⇒ Object
- #img(**attributes) ⇒ Object
- #input(**attributes) ⇒ Object
- #ins(content = nil, **attributes) ⇒ Object
- #kbd(content = nil, **attributes) ⇒ Object
- #keygen(**attributes) ⇒ Object
- #label(content = nil, **attributes) ⇒ Object
- #legend(content = nil, **attributes) ⇒ Object
- #li(content = nil, **attributes) ⇒ Object
- #main(content = nil, **attributes) ⇒ Object
- #map(content = nil, **attributes) ⇒ Object
- #mark(content = nil, **attributes) ⇒ Object
- #menu(content = nil, **attributes) ⇒ Object
- #meter(content = nil, **attributes) ⇒ Object
- #nav(content = nil, **attributes) ⇒ Object
- #noscript(content = nil, **attributes) ⇒ Object
- #object(content = nil, **attributes) ⇒ Object
- #ol(**attributes) ⇒ Object
- #optgroup(**attributes) ⇒ Object
- #option(content = nil, **attributes) ⇒ Object
- #output(content = nil, **attributes) ⇒ Object
- #p(content = nil, **attributes) ⇒ Object
- #param(**attributes) ⇒ Object
- #password_input(**attributes) ⇒ Object
- #pre(content = nil, **attributes) ⇒ Object
- #progress(content = nil, **attributes) ⇒ Object
- #q(content = nil, **attributes) ⇒ Object
- #radio_button(**attributes) ⇒ Object
- #rb(content = nil, **attributes) ⇒ Object
- #rp(content = nil, **attributes) ⇒ Object
- #rt(content = nil, **attributes) ⇒ Object
- #rtc(content = nil, **attributes) ⇒ Object
- #ruby(content = nil, **attributes) ⇒ Object
- #s(content = nil, **attributes) ⇒ Object
- #samp(content = nil, **attributes) ⇒ Object
- #script(content = nil, **attributes) ⇒ Object
- #search_input(**attributes) ⇒ Object
- #section(content = nil, **attributes) ⇒ Object
- #select(**attributes) ⇒ Object
- #small(content = nil, **attributes) ⇒ Object
- #source(**attributes) ⇒ Object
- #span(content = nil, **attributes) ⇒ Object
- #strong(content = nil, **attributes) ⇒ Object
- #style(content = nil, **attributes) ⇒ Object
- #sub(content = nil, **attributes) ⇒ Object
- #submit_button(**attributes) ⇒ Object
- #summary(content = nil, **attributes) ⇒ Object
- #sup(content = nil, **attributes) ⇒ Object
- #table(**attributes) ⇒ Object
- #tbody(**attributes) ⇒ Object
- #td(content = nil, **attributes) ⇒ Object
- #template(content = nil, **attributes) ⇒ Object
- #text_input(**attributes) ⇒ Object
- #textarea(content = nil, **attributes) ⇒ Object
- #tfoot(**attributes) ⇒ Object
- #th(content = nil, **attributes) ⇒ Object
- #thead(**attributes) ⇒ Object
- #time(content = nil, **attributes) ⇒ Object
- #tr(**attributes) ⇒ Object
- #track(**attributes) ⇒ Object
- #u(content = nil, **attributes) ⇒ Object
- #ul(**attributes) ⇒ Object
- #var(content = nil, **attributes) ⇒ Object
- #video(content = nil, **attributes) ⇒ Object
- #wbr(**attributes) ⇒ Object
Instance Method Summary collapse
-
#to_html(*args) ⇒ Object
Helper for converting this object to html It passes arguments along to whatever is set as the pagebuilder document so see associated documentation for the allowed arguments.
Instance Method Details
#a(content = nil, **attributes) ⇒ Object
13 14 15 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 13 def a(content = nil, **attributes) pagebuilder_configured_element(Elements::Anchor, content, attributes) end |
#abbr(content = nil, **attributes) ⇒ Object
11 12 13 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 11 def abbr(content = nil, **attributes) pagebuilder_basic_element('abbr', content, attributes) end |
#address(content = nil, **attributes) ⇒ Object
16 17 18 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 16 def address(content = nil, **attributes) pagebuilder_basic_element('address', content, attributes) end |
#area(**attributes) ⇒ Object
11 12 13 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 11 def area(**attributes) pagebuilder_basic_element('area', nil, attributes) end |
#article(content = nil, **attributes) ⇒ Object
11 12 13 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 11 def article(content = nil, **attributes) pagebuilder_basic_element('article', content, attributes) end |
#aside(content = nil, **attributes) ⇒ Object
16 17 18 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 16 def aside(content = nil, **attributes) pagebuilder_basic_element('aside', content, attributes) end |
#audio(content = nil, **attributes) ⇒ Object
16 17 18 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 16 def audio(content = nil, **attributes) pagebuilder_basic_element('audio', content, attributes) end |
#b(content = nil, **attributes) ⇒ Object
21 22 23 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 21 def b(content = nil, **attributes) pagebuilder_basic_element('b', content, attributes) end |
#bdi(content = nil, **attributes) ⇒ Object
26 27 28 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 26 def bdi(content = nil, **attributes) pagebuilder_basic_element('bdi', content, attributes) end |
#bdo(content = nil, **attributes) ⇒ Object
31 32 33 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 31 def bdo(content = nil, **attributes) pagebuilder_basic_element('bdo', content, attributes) end |
#blockquote(content = nil, **attributes) ⇒ Object
36 37 38 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 36 def blockquote(content = nil, **attributes) pagebuilder_basic_element('blockquote', content, attributes) end |
#br(**attributes) ⇒ Object
18 19 20 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 18 def br(**attributes) pagebuilder_basic_element('br', nil, attributes) end |
#button(content = nil, **attributes) ⇒ Object
11 12 13 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 11 def (content = nil, **attributes) pagebuilder_basic_element('button', content, attributes) end |
#canvas(content = nil, **attributes) ⇒ Object
21 22 23 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 21 def canvas(content = nil, **attributes) pagebuilder_basic_element('canvas', content, attributes) end |
#caption(content = nil, **attributes) ⇒ Object
11 12 13 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 11 def (content = nil, **attributes) pagebuilder_basic_element('caption', content, attributes) end |
#checkbox(**attributes) ⇒ Object
16 17 18 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 16 def checkbox(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::Checkbox, nil, attributes) end |
#cite(content = nil, **attributes) ⇒ Object
41 42 43 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 41 def cite(content = nil, **attributes) pagebuilder_basic_element('cite', content, attributes) end |
#code(content = nil, **attributes) ⇒ Object
46 47 48 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 46 def code(content = nil, **attributes) pagebuilder_basic_element('code', content, attributes) end |
#col(**attributes) ⇒ Object
16 17 18 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 16 def col(**attributes) pagebuilder_basic_element('col', nil, attributes) end |
#colgroup(**attributes) ⇒ Object
21 22 23 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 21 def colgroup(**attributes) pagebuilder_basic_element('colgroup', nil, attributes) end |
#data(content = nil, **attributes) ⇒ Object
51 52 53 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 51 def data(content = nil, **attributes) pagebuilder_basic_element('data', content, attributes) end |
#datalist(content = nil, **attributes) ⇒ Object
23 24 25 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 23 def datalist(content = nil, **attributes) pagebuilder_basic_element('datalist', content, attributes) end |
#dd(content = nil, **attributes) ⇒ Object
13 14 15 |
# File 'lib/pagebuilder/tag_helpers/lists.rb', line 13 def dd(content = nil, **attributes) pagebuilder_basic_element('dd', content, attributes) end |
#del(content = nil, **attributes) ⇒ Object
56 57 58 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 56 def del(content = nil, **attributes) pagebuilder_basic_element('del', content, attributes) end |
#details(content = nil, **attributes) ⇒ Object
61 62 63 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 61 def details(content = nil, **attributes) pagebuilder_basic_element('details', content, attributes) end |
#dfn(content = nil, **attributes) ⇒ Object
66 67 68 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 66 def dfn(content = nil, **attributes) pagebuilder_basic_element('dfn', content, attributes) end |
#dialog(content = nil, **attributes) ⇒ Object
28 29 30 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 28 def dialog(content = nil, **attributes) pagebuilder_basic_element('dialog', content, attributes) end |
#div(content = nil, **attributes) ⇒ Object
21 22 23 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 21 def div(content = nil, **attributes) pagebuilder_basic_element('div', content, attributes) end |
#dl(**attributes) ⇒ Object
18 19 20 |
# File 'lib/pagebuilder/tag_helpers/lists.rb', line 18 def dl(**attributes) pagebuilder_basic_element('dl', nil, attributes) end |
#dt(content = nil, **attributes) ⇒ Object
23 24 25 |
# File 'lib/pagebuilder/tag_helpers/lists.rb', line 23 def dt(content = nil, **attributes) pagebuilder_basic_element('dt', content, attributes) end |
#em(content = nil, **attributes) ⇒ Object
71 72 73 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 71 def em(content = nil, **attributes) pagebuilder_basic_element('em', content, attributes) end |
#email_input(**attributes) ⇒ Object
21 22 23 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 21 def email_input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::Email, nil, attributes) end |
#embed(**attributes) ⇒ Object
26 27 28 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 26 def (**attributes) pagebuilder_basic_element('embed', nil, attributes) end |
#fieldset(content = nil, **attributes) ⇒ Object
26 27 28 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 26 def fieldset(content = nil, **attributes) pagebuilder_basic_element('fieldset', content, attributes) end |
#figcaption(content = nil, **attributes) ⇒ Object
31 32 33 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 31 def (content = nil, **attributes) pagebuilder_basic_element('figcaption', content, attributes) end |
#figure(content = nil, **attributes) ⇒ Object
36 37 38 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 36 def figure(content = nil, **attributes) pagebuilder_basic_element('figure', content, attributes) end |
#file_input(**attributes) ⇒ Object
31 32 33 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 31 def file_input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::File, nil, attributes) end |
#footer(content = nil, **attributes) ⇒ Object
26 27 28 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 26 def (content = nil, **attributes) pagebuilder_basic_element('footer', content, attributes) end |
#form(content = nil, **attributes) ⇒ Object
36 37 38 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 36 def form(content = nil, **attributes) pagebuilder_basic_element('form', content, attributes) end |
#h1(content = nil, **attributes) ⇒ Object
31 32 33 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 31 def h1(content = nil, **attributes) pagebuilder_basic_element('h1', content, attributes) end |
#h2(content = nil, **attributes) ⇒ Object
36 37 38 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 36 def h2(content = nil, **attributes) pagebuilder_basic_element('h2', content, attributes) end |
#h3(content = nil, **attributes) ⇒ Object
41 42 43 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 41 def h3(content = nil, **attributes) pagebuilder_basic_element('h3', content, attributes) end |
#h4(content = nil, **attributes) ⇒ Object
46 47 48 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 46 def h4(content = nil, **attributes) pagebuilder_basic_element('h4', content, attributes) end |
#h5(content = nil, **attributes) ⇒ Object
51 52 53 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 51 def h5(content = nil, **attributes) pagebuilder_basic_element('h5', content, attributes) end |
#h6(content = nil, **attributes) ⇒ Object
56 57 58 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 56 def h6(content = nil, **attributes) pagebuilder_basic_element('h6', content, attributes) end |
#header(content = nil, **attributes) ⇒ Object
61 62 63 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 61 def header(content = nil, **attributes) pagebuilder_basic_element('header', content, attributes) end |
#hgroup(**attributes) ⇒ Object
66 67 68 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 66 def hgroup(**attributes) pagebuilder_basic_element('hgroup', nil, attributes) end |
#hidden_input(**attributes) ⇒ Object
41 42 43 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 41 def hidden_input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::Hidden, nil, attributes) end |
#hr(**attributes) ⇒ Object
33 34 35 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 33 def hr(**attributes) pagebuilder_basic_element('hr', nil, attributes) end |
#i(content = nil, **attributes) ⇒ Object
76 77 78 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 76 def i(content = nil, **attributes) pagebuilder_basic_element('i', content, attributes) end |
#iframe(content = nil, **attributes) ⇒ Object
41 42 43 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 41 def iframe(content = nil, **attributes) pagebuilder_basic_element('iframe', content, attributes) end |
#img(**attributes) ⇒ Object
46 47 48 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 46 def img(**attributes) pagebuilder_basic_element('img', nil, attributes) end |
#input(**attributes) ⇒ Object
46 47 48 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 46 def input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Input, nil, attributes) end |
#ins(content = nil, **attributes) ⇒ Object
81 82 83 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 81 def ins(content = nil, **attributes) pagebuilder_basic_element('ins', content, attributes) end |
#kbd(content = nil, **attributes) ⇒ Object
86 87 88 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 86 def kbd(content = nil, **attributes) pagebuilder_basic_element('kbd', content, attributes) end |
#keygen(**attributes) ⇒ Object
51 52 53 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 51 def keygen(**attributes) pagebuilder_basic_element('keygen', nil, attributes) end |
#label(content = nil, **attributes) ⇒ Object
58 59 60 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 58 def label(content = nil, **attributes) pagebuilder_basic_element('label', content, attributes) end |
#legend(content = nil, **attributes) ⇒ Object
63 64 65 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 63 def legend(content = nil, **attributes) pagebuilder_basic_element('legend', content, attributes) end |
#li(content = nil, **attributes) ⇒ Object
28 29 30 |
# File 'lib/pagebuilder/tag_helpers/lists.rb', line 28 def li(content = nil, **attributes) pagebuilder_basic_element('li', content, attributes) end |
#main(content = nil, **attributes) ⇒ Object
71 72 73 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 71 def main(content = nil, **attributes) pagebuilder_basic_element('main', content, attributes) end |
#map(content = nil, **attributes) ⇒ Object
51 52 53 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 51 def map(content = nil, **attributes) pagebuilder_basic_element('map', content, attributes) end |
#mark(content = nil, **attributes) ⇒ Object
91 92 93 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 91 def mark(content = nil, **attributes) pagebuilder_basic_element('mark', content, attributes) end |
#menu(content = nil, **attributes) ⇒ Object
38 39 40 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 38 def (content = nil, **attributes) pagebuilder_basic_element('menu', content, attributes) end |
#meter(content = nil, **attributes) ⇒ Object
96 97 98 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 96 def meter(content = nil, **attributes) pagebuilder_basic_element('meter', content, attributes) end |
#nav(content = nil, **attributes) ⇒ Object
76 77 78 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 76 def nav(content = nil, **attributes) pagebuilder_basic_element('nav', content, attributes) end |
#noscript(content = nil, **attributes) ⇒ Object
43 44 45 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 43 def noscript(content = nil, **attributes) pagebuilder_basic_element('noscript', content, attributes) end |
#object(content = nil, **attributes) ⇒ Object
56 57 58 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 56 def object(content = nil, **attributes) pagebuilder_basic_element('object', content, attributes) end |
#ol(**attributes) ⇒ Object
33 34 35 |
# File 'lib/pagebuilder/tag_helpers/lists.rb', line 33 def ol(**attributes) pagebuilder_basic_element('ol', nil, attributes) end |
#optgroup(**attributes) ⇒ Object
70 71 72 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 70 def optgroup(**attributes) pagebuilder_basic_element('optgroup', nil, attributes) end |
#option(content = nil, **attributes) ⇒ Object
75 76 77 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 75 def option(content = nil, **attributes) pagebuilder_basic_element('option', content, attributes) end |
#output(content = nil, **attributes) ⇒ Object
101 102 103 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 101 def output(content = nil, **attributes) pagebuilder_basic_element('output', content, attributes) end |
#p(content = nil, **attributes) ⇒ Object
106 107 108 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 106 def p(content = nil, **attributes) pagebuilder_basic_element('p', content, attributes) end |
#param(**attributes) ⇒ Object
61 62 63 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 61 def param(**attributes) pagebuilder_basic_element('param', nil, attributes) end |
#password_input(**attributes) ⇒ Object
80 81 82 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 80 def password_input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::Password, nil, attributes) end |
#pre(content = nil, **attributes) ⇒ Object
111 112 113 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 111 def pre(content = nil, **attributes) pagebuilder_basic_element('pre', content, attributes) end |
#progress(content = nil, **attributes) ⇒ Object
48 49 50 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 48 def progress(content = nil, **attributes) pagebuilder_basic_element('progress', content, attributes) end |
#q(content = nil, **attributes) ⇒ Object
116 117 118 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 116 def q(content = nil, **attributes) pagebuilder_basic_element('q', content, attributes) end |
#radio_button(**attributes) ⇒ Object
85 86 87 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 85 def (**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::RadioButton, nil, attributes) end |
#rb(content = nil, **attributes) ⇒ Object
121 122 123 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 121 def rb(content = nil, **attributes) pagebuilder_basic_element('rb', content, attributes) end |
#rp(content = nil, **attributes) ⇒ Object
126 127 128 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 126 def rp(content = nil, **attributes) pagebuilder_basic_element('rp', content, attributes) end |
#rt(content = nil, **attributes) ⇒ Object
131 132 133 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 131 def rt(content = nil, **attributes) pagebuilder_basic_element('rt', content, attributes) end |
#rtc(content = nil, **attributes) ⇒ Object
136 137 138 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 136 def rtc(content = nil, **attributes) pagebuilder_basic_element('rtc', content, attributes) end |
#ruby(content = nil, **attributes) ⇒ Object
141 142 143 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 141 def ruby(content = nil, **attributes) pagebuilder_basic_element('ruby', content, attributes) end |
#s(content = nil, **attributes) ⇒ Object
146 147 148 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 146 def s(content = nil, **attributes) pagebuilder_basic_element('s', content, attributes) end |
#samp(content = nil, **attributes) ⇒ Object
151 152 153 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 151 def samp(content = nil, **attributes) pagebuilder_basic_element('samp', content, attributes) end |
#script(content = nil, **attributes) ⇒ Object
53 54 55 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 53 def script(content = nil, **attributes) pagebuilder_basic_element('script', content, attributes) end |
#search_input(**attributes) ⇒ Object
90 91 92 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 90 def search_input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::Search, nil, attributes) end |
#section(content = nil, **attributes) ⇒ Object
81 82 83 |
# File 'lib/pagebuilder/tag_helpers/page_structure.rb', line 81 def section(content = nil, **attributes) pagebuilder_basic_element('section', content, attributes) end |
#select(**attributes) ⇒ Object
97 98 99 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 97 def select(**attributes) pagebuilder_basic_element('select', nil, attributes) end |
#small(content = nil, **attributes) ⇒ Object
156 157 158 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 156 def small(content = nil, **attributes) pagebuilder_basic_element('small', content, attributes) end |
#source(**attributes) ⇒ Object
66 67 68 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 66 def source(**attributes) pagebuilder_basic_element('source', nil, attributes) end |
#span(content = nil, **attributes) ⇒ Object
161 162 163 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 161 def span(content = nil, **attributes) pagebuilder_basic_element('span', content, attributes) end |
#strong(content = nil, **attributes) ⇒ Object
166 167 168 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 166 def strong(content = nil, **attributes) pagebuilder_basic_element('strong', content, attributes) end |
#style(content = nil, **attributes) ⇒ Object
58 59 60 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 58 def style(content = nil, **attributes) pagebuilder_basic_element('style', content, attributes) end |
#sub(content = nil, **attributes) ⇒ Object
171 172 173 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 171 def sub(content = nil, **attributes) pagebuilder_basic_element('sub', content, attributes) end |
#submit_button(**attributes) ⇒ Object
102 103 104 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 102 def (**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::SubmitButton, nil, attributes) end |
#summary(content = nil, **attributes) ⇒ Object
176 177 178 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 176 def summary(content = nil, **attributes) pagebuilder_basic_element('summary', content, attributes) end |
#sup(content = nil, **attributes) ⇒ Object
181 182 183 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 181 def sup(content = nil, **attributes) pagebuilder_basic_element('sup', content, attributes) end |
#table(**attributes) ⇒ Object
26 27 28 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 26 def table(**attributes) pagebuilder_basic_element('table', nil, attributes) end |
#tbody(**attributes) ⇒ Object
33 34 35 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 33 def tbody(**attributes) pagebuilder_basic_element('tbody', nil, attributes) end |
#td(content = nil, **attributes) ⇒ Object
38 39 40 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 38 def td(content = nil, **attributes) pagebuilder_basic_element('td', content, attributes) end |
#template(content = nil, **attributes) ⇒ Object
63 64 65 |
# File 'lib/pagebuilder/tag_helpers/miscellaneous.rb', line 63 def template(content = nil, **attributes) pagebuilder_basic_element('template', content, attributes) end |
#text_input(**attributes) ⇒ Object
107 108 109 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 107 def text_input(**attributes) pagebuilder_configured_element(PageBuilder::Elements::Inputs::Text, nil, attributes) end |
#textarea(content = nil, **attributes) ⇒ Object
112 113 114 |
# File 'lib/pagebuilder/tag_helpers/forms.rb', line 112 def textarea(content = nil, **attributes) pagebuilder_basic_element('textarea', content, attributes) end |
#tfoot(**attributes) ⇒ Object
43 44 45 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 43 def tfoot(**attributes) pagebuilder_basic_element('tfoot', nil, attributes) end |
#th(content = nil, **attributes) ⇒ Object
48 49 50 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 48 def th(content = nil, **attributes) pagebuilder_basic_element('th', content, attributes) end |
#thead(**attributes) ⇒ Object
53 54 55 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 53 def thead(**attributes) pagebuilder_basic_element('thead', nil, attributes) end |
#time(content = nil, **attributes) ⇒ Object
186 187 188 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 186 def time(content = nil, **attributes) pagebuilder_basic_element('time', content, attributes) end |
#to_html(*args) ⇒ Object
Helper for converting this object to html It passes arguments along to whatever is set as the pagebuilder document so see associated documentation for the allowed arguments
8 9 10 |
# File 'lib/pagebuilder/tag_helpers.rb', line 8 def to_html(*args) pagebuilder_document.to_html(*args) end |
#tr(**attributes) ⇒ Object
58 59 60 |
# File 'lib/pagebuilder/tag_helpers/tables.rb', line 58 def tr(**attributes) pagebuilder_basic_element('tr', nil, attributes) end |
#track(**attributes) ⇒ Object
71 72 73 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 71 def track(**attributes) pagebuilder_basic_element('track', nil, attributes) end |
#u(content = nil, **attributes) ⇒ Object
191 192 193 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 191 def u(content = nil, **attributes) pagebuilder_basic_element('u', content, attributes) end |
#ul(**attributes) ⇒ Object
38 39 40 |
# File 'lib/pagebuilder/tag_helpers/lists.rb', line 38 def ul(**attributes) pagebuilder_basic_element('ul', nil, attributes) end |
#var(content = nil, **attributes) ⇒ Object
196 197 198 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 196 def var(content = nil, **attributes) pagebuilder_basic_element('var', content, attributes) end |
#video(content = nil, **attributes) ⇒ Object
76 77 78 |
# File 'lib/pagebuilder/tag_helpers/embeds.rb', line 76 def video(content = nil, **attributes) pagebuilder_basic_element('video', content, attributes) end |
#wbr(**attributes) ⇒ Object
201 202 203 |
# File 'lib/pagebuilder/tag_helpers/text_markup.rb', line 201 def wbr(**attributes) pagebuilder_basic_element('wbr', nil, attributes) end |