sprocket/html/elements

Functions

pub fn a(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn a_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.a(attrs, children: [html.text(text)])

pub fn abbr(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn address(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn area(attrs: List(Attribute)) -> Element
pub fn article(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn article_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.article(attrs, children: [html.text(text)])

pub fn aside(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn aside_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.aside(attrs, children: [html.text(text)])

pub fn audio(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn audio_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.audio(attrs, children: [html.text(text)])

pub fn b(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn b_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.b(attrs, children: [html.text(text)])

pub fn base(attrs: List(Attribute)) -> Element
pub fn bdi(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn bdi_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.bdi(attrs, children: [html.text(text)])

pub fn bdo(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn bdo_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.bdo(attrs, children: [html.text(text)])

pub fn blockquote(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn blockquote_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.blockquote(attrs, children: [html.text(text)])

pub fn body(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn br(attrs: List(Attribute)) -> Element
pub fn button(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn button_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.button(attrs, children: [html.text(text)])

pub fn canvas(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn canvas_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.canvas(attrs, children: [html.text(text)])

pub fn caption(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn caption_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.caption(attrs, children: [html.text(text)])

pub fn cite(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn cite_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.cite(attrs, children: [html.text(text)])

pub fn code(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn code_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.code(attrs, children: [html.text(text)])

pub fn col(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn col_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.col(attrs, children: [html.text(text)])

pub fn colgroup(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn colgroup_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.colgroup(attrs, children: [html.text(text)])

pub fn data(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn data_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.data(attrs, children: [html.text(text)])

pub fn datalist(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn datalist_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.datalist(attrs, children: [html.text(text)])

pub fn dd(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn dd_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.dd(attrs, children: [html.text(text)])

pub fn debug(
  id: String,
  meta: Option(Dynamic),
  element: Element,
) -> Element
pub fn del(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn del_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.del(attrs, children: [html.text(text)])

pub fn details(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn details_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.details(attrs, children: [html.text(text)])

pub fn dfn(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn dfn_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.dfn(attrs, children: [html.text(text)])

pub fn dialog(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn dialog_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.dialog(attrs, children: [html.text(text)])

pub fn div(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn div_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.div(attrs, children: [html.text(text)])

pub fn dl(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn dl_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.dl(attrs, children: [html.text(text)])

pub fn dt(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn dt_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.dt(attrs, children: [html.text(text)])

pub fn el(
  tag: String,
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn em(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn em_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.em(attrs, children: [html.text(text)])

pub fn embed(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn embed_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.embed(attrs, children: [html.text(text)])

pub fn fieldset(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn fieldset_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.fieldset(attrs, children: [html.text(text)])

pub fn figcaption(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn figcaption_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.figcaption(attrs, children: [html.text(text)])

pub fn figure(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn figure_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.figure(attrs, children: [html.text(text)])

pub fn footer(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn footer_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.footer(attrs, children: [html.text(text)])

pub fn form(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn form_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.form(attrs, children: [html.text(text)])

pub fn fragment(children: List(Element)) -> Element
pub fn h1(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn h1_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.h1(attrs, children: [html.text(text)])

pub fn h2(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn h2_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.h2(attrs, children: [html.text(text)])

pub fn h3(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn h3_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.h3(attrs, children: [html.text(text)])

pub fn h4(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn h4_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.h4(attrs, children: [html.text(text)])

pub fn h5(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn h5_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.h5(attrs, children: [html.text(text)])

pub fn h6(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn h6_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.h6(attrs, children: [html.text(text)])

pub fn head(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn header(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn header_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.header(attrs, children: [html.text(text)])

pub fn hr(attrs: List(Attribute)) -> Element
pub fn html(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn i(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn i_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.i(attrs, children: [html.text(text)])

pub fn iframe(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn iframe_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.iframe(attrs, children: [html.text(text)])

pub fn ignore(element: Element) -> Element
pub fn ignore_while(expr: Bool, element: Element) -> Element
pub fn img(attrs: List(Attribute)) -> Element
pub fn input(attrs: List(Attribute)) -> Element
pub fn ins(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn ins_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.ins(attrs, children: [html.text(text)])

pub fn kbd(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn kbd_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.kbd(attrs, children: [html.text(text)])

pub fn keyed(key: String, element: Element) -> Element
pub fn label(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn label_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.label(attrs, children: [html.text(text)])

pub fn legend(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn legend_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.legend(attrs, children: [html.text(text)])

pub fn li(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn li_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.li(attrs, children: [html.text(text)])

pub fn link(attrs: List(Attribute)) -> Element
pub fn main(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn main_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.main(attrs, children: [html.text(text)])

pub fn map(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn map_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.map(attrs, children: [html.text(text)])

pub fn mark(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn mark_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.mark(attrs, children: [html.text(text)])

pub fn math(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn math_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.math(attrs, children: [html.text(text)])

pub fn menu(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn menu_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.menu(attrs, children: [html.text(text)])

pub fn menuitem(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn menuitem_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.menuitem(attrs, children: [html.text(text)])

pub fn meta(attrs: List(Attribute)) -> Element
pub fn meter(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn meter_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.meter(attrs, children: [html.text(text)])

pub fn nav(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn nav_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.nav(attrs, children: [html.text(text)])

pub fn noscript(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn noscript_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.noscript(attrs, children: [html.text(text)])

pub fn object(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn object_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.object(attrs, children: [html.text(text)])

pub fn ol(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn ol_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.ol(attrs, children: [html.text(text)])

pub fn optgroup(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn optgroup_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.optgroup(attrs, children: [html.text(text)])

pub fn option(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn option_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.option(attrs, children: [html.text(text)])

pub fn output(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn output_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.output(attrs, children: [html.text(text)])

pub fn p(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn p_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.p(attrs, children: [html.text(text)])

pub fn param(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn param_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.param(attrs, children: [html.text(text)])

pub fn picture(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn picture_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.picture(attrs, children: [html.text(text)])

pub fn pre(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn pre_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.pre(attrs, children: [html.text(text)])

pub fn progress(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn progress_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.progress(attrs, children: [html.text(text)])

pub fn q(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn q_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.q(attrs, children: [html.text(text)])

pub fn raw(
  tag: String,
  attrs: List(Attribute),
  html: String,
) -> Element
pub fn rp(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn rp_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.rp(attrs, children: [html.text(text)])

pub fn rt(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn rt_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.rt(attrs, children: [html.text(text)])

pub fn ruby(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn ruby_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.ruby(attrs, children: [html.text(text)])

pub fn s(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn s_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.s(attrs, children: [html.text(text)])

pub fn samp(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn samp_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.samp(attrs, children: [html.text(text)])

pub fn script(
  attrs: List(Attribute),
  body: Option(String),
) -> Element
pub fn section(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn section_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.section(attrs, children: [html.text(text)])

pub fn select(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn select_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.select(attrs, children: [html.text(text)])

pub fn small(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn small_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.small(attrs, children: [html.text(text)])

pub fn source(attrs: List(Attribute)) -> Element
pub fn span(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn span_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.span(attrs, children: [html.text(text)])

pub fn strong(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn strong_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.strong(attrs, children: [html.text(text)])

pub fn style(
  attrs: List(Attribute),
  body: Option(String),
) -> Element
pub fn sub(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn sub_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.sub(attrs, children: [html.text(text)])

pub fn summary(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn summary_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.summary(attrs, children: [html.text(text)])

pub fn sup(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn sup_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.sup(attrs, children: [html.text(text)])

pub fn svg(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn svg_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.svg(attrs, children: [html.text(text)])

pub fn table(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn table_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.table(attrs, children: [html.text(text)])

pub fn tbody(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn tbody_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.tbody(attrs, children: [html.text(text)])

pub fn td(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn td_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.td(attrs, children: [html.text(text)])

pub fn text(text: String) -> Element
pub fn textarea(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn textarea_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.textarea(attrs, children: [html.text(text)])

pub fn tfoot(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn tfoot_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.tfoot(attrs, children: [html.text(text)])

pub fn th(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn th_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.th(attrs, children: [html.text(text)])

pub fn thead(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn thead_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.thead(attrs, children: [html.text(text)])

pub fn time(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn time_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.time(attrs, children: [html.text(text)])

pub fn title(title: String) -> Element

The HTML <title> element

pub fn tr(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn tr_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.tr(attrs, children: [html.text(text)])

pub fn track(attrs: List(Attribute)) -> Element
pub fn u(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn u_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.u(attrs, children: [html.text(text)])

pub fn ul(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn ul_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.ul(attrs, children: [html.text(text)])

pub fn var(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn var_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.var(attrs, children: [html.text(text)])

pub fn video(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn video_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.video(attrs, children: [html.text(text)])

pub fn wbr(
  attrs: List(Attribute),
  children: List(Element),
) -> Element
pub fn wbr_text(
  attrs: List(Attribute),
  text inner_text: String,
) -> Element

Shorthand for html.wbr(attrs, children: [html.text(text)])

Search Document