-
✓ variable unescaped
{{&name}}
and{{{name}}}
-
✓ variable escaped
{{name}}
-
❏ conditions
-
❏ loop
-
❏ contexts
-
❏ sections
-
❏ list
-
❏ non-false values
-
❏ lambdas
-
❏ inverted
-
-
❏ comments
-
❏ partials
examples/render.sql
select lib_mustache.render('<h1>{{&header}}</h1><p>{{&sub.value}}</p>', '{
"header": "awesome header",
"sub": {
"value": "paragraph"
}
}'::jsonb);
Code is written following standard SQL-convention.