Current section
Files
Jump to
Current section
Files
src/webls.erl
-module(webls).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-spec main() -> nil.
main() ->
Sitemap = {sitemap,
<<"https://gleam.run/sitemap.xml"/utf8>>,
none,
[begin
_pipe = webls@sitemap:item(<<"https://gleam.run"/utf8>>),
_pipe@1 = webls@sitemap:with_frequency(_pipe, monthly),
webls@sitemap:with_priority(_pipe@1, 1.0)
end,
begin
_pipe@2 = webls@sitemap:item(<<"https://gleam.run/blog"/utf8>>),
webls@sitemap:with_frequency(_pipe@2, weekly)
end,
webls@sitemap:item(<<"https://gleam.run/blog/gleam-1.0"/utf8>>),
webls@sitemap:item(<<"https://gleam.run/blog/gleam-1.1"/utf8>>)]},
_pipe@3 = Sitemap,
_pipe@4 = webls@sitemap:to_string(_pipe@3),
gleam@io:println(_pipe@4).