Hacker News new | ask | show | jobs
by sivers 242 days ago
Ah, sorry. I misunderstood. The parser for Mustache templates - https://mustache.github.io/ - is in the PostgreSQL functions.

See it in practice here in the unit tests:

https://github.com/sivers/sivers/blob/master/omni/test/templ...

https://github.com/sivers/sivers/blob/master/omni/test/must_...

It comes from these three functions, but really only using the top-level "o.template" function:

https://github.com/sivers/sivers/blob/master/omni/template.s...

https://github.com/sivers/sivers/blob/master/omni/must_templ...

https://github.com/sivers/sivers/blob/master/omni/must_secti...

I'm using it for https://nownownow.com/ and https://my.nownownow.com/ already. Example test:

https://github.com/sivers/sivers/blob/master/nnn/test/mynow-...

1 comments

Thank you very much!