Packages

Handles is a templating language written in pure Gleam. Heavily inspired by Mustache and Handlebars.js

Current section

Files

Jump to
handles src handles@ctx.erl
Raw

src/handles@ctx.erl

-module(handles@ctx).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([prop/0, value/0]).
-type prop() :: {prop, binary(), value()}.
-type value() :: {str, binary()} |
{int, integer()} |
{float, float()} |
{bool, boolean()} |
{dict, list(prop())} |
{list, list(value())}.