You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since it doesn't make sense to load partials from file, it would be great if other functions could be called via partials:
create or replacefunctionhello() returns textas $$
Hello, {{>world}}
$$ language plmustache;
create or replacefunctionworld() returns textas $$
World
$$ language plmustache;
select hello();
Hello, World
It should even be possible to pass arguments to those functions via blocks and parents:
create or replacefunctionhello(subject text) returns textas $$
Hello, {{subject}}
$$ language plmustache;
create or replacefunctionhello_world() returns textas $$
{{<hello}}
{{$subject}}World{{/subject}}
{{/hello}}
$$ language plmustache;
select hello();
Hello, World
Neither blocks, nor parents are supported by jobol/mustach, yet. I opened an issue about it.
I don't think it's possible to override the default "file loader" either, so that probably needs some changes in jobol/mustach, too.
The text was updated successfully, but these errors were encountered:
Since it doesn't make sense to load partials from file, it would be great if other functions could be called via partials:
It should even be possible to pass arguments to those functions via blocks and parents:
Neither blocks, nor parents are supported by jobol/mustach, yet. I opened an issue about it.
I don't think it's possible to override the default "file loader" either, so that probably needs some changes in jobol/mustach, too.
The text was updated successfully, but these errors were encountered: