Current section

Files

Jump to
nakai src nakai@web_components.erl
Raw

src/nakai@web_components.erl

-module(nakai@web_components).
-compile(no_auto_import).
-export([slot/1, template/2]).
-spec slot(list(nakai@html@attrs:attr(HFO))) -> nakai@html:node_(HFO).
slot(Attrs) ->
{leaf_element, <<"slot"/utf8>>, Attrs}.
-spec template(list(nakai@html@attrs:attr(HFS)), list(nakai@html:node_(HFS))) -> nakai@html:node_(HFS).
template(Attrs, Children) ->
{element, <<"template"/utf8>>, Attrs, Children}.