Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.adoc

Mustache template engine for PL/pgSQL

Features

  • ✓ variable unescaped {{&name}} and {{{name}}}

  • ✓ variable escaped {{name}}

  • ❏ conditions

  • ❏ loop

  • ❏ contexts

  • ❏ sections

    • ❏ list

    • ❏ non-false values

    • ❏ lambdas

    • ❏ inverted

  • ❏ comments

  • ❏ partials

Usage

examples/render.sql
select lib_mustache.render('<h1>{{&header}}</h1><p>{{&sub.value}}</p>', '{
  "header": "awesome header",
  "sub": {
    "value": "paragraph"
  }
}'::jsonb);

API

SQL Conventions

About

Basic Mustache template engine for PostgreSQL (PL/pgSQL)

Topics

Resources

Releases

No releases published

Packages

No packages published