Current section
Files
Jump to
Current section
Files
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(GXY))) -> nakai@html:node_(GXY).
slot(Attrs) ->
{leaf_element, <<"slot"/utf8>>, Attrs}.
-spec template(list(nakai@html@attrs:attr(GYC)), list(nakai@html:node_(GYC))) -> nakai@html:node_(GYC).
template(Attrs, Children) ->
{element, <<"template"/utf8>>, Attrs, Children}.