Current section

Files

Jump to
nakai src nakai.erl
Raw

src/nakai.erl

-module(nakai).
-compile([no_auto_import, nowarn_unused_vars]).
-export([to_string_builder/1, to_string/1]).
-spec to_string_builder(nakai@html:node_(any())) -> gleam@string_builder:string_builder().
to_string_builder(Tree) ->
nakai@internal@render:render_root(Tree).
-spec to_string(nakai@html:node_(any())) -> binary().
to_string(Tree) ->
_pipe = nakai@internal@render:render_root(Tree),
gleam@string_builder:to_string(_pipe).