Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle sections for composites #8

Open
steve-chavez opened this issue Sep 10, 2023 · 0 comments
Open

handle sections for composites #8

steve-chavez opened this issue Sep 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@steve-chavez
Copy link
Member

steve-chavez commented Sep 10, 2023

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 steve-chavez added the enhancement New feature or request label Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant