Current section
Files
Jump to
Current section
Files
src/document.erl
-module(document).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([document/3]).
-spec document(
list(elements:html_attribute()),
list(elements:html_element()),
list(elements:html_element())
) -> elements:html_element().
document(Attrs, Head, Body) ->
elements:html(Attrs, [elements:head([], Head), elements:body([], Body)]).