plmustache icon indicating copy to clipboard operation
plmustache copied to clipboard

handle sections for composites

Open steve-chavez opened this issue 2 years ago • 0 comments

Should be like:

create type person (name text, lastname text);

create or replace function hello(p person) returns text as $$
Hello, {{#p}} {{name}} {{/p}}
$$ language plmustache;

select hello('(John,Doe)');
Hello John

select hello(null);
Hello

According to https://github.com/mustache/spec/blob/master/specs/sections.yml#L56-L60

steve-chavez avatar Sep 10 '23 23:09 steve-chavez