{"repo":"athos/pogonos","free":true,"listed":false,"github":"https://github.com/athos/pogonos","clone":"git clone https://github.com/athos/pogonos.git","description":"Yet another Clojure(Script) implementation of the Mustache templating language","language":"Clojure","stars":85,"topics":["mustache","template","babashka","clojure","clojurescript"],"license":"EPL-2.0","category":"self-hosted-apps","readme_excerpt":"Pogonos Pogonos is yet another Clojure(Script) implementation of the Mustache templating language. Features - Compliant to the Mustache spec v1.3.0 including lambdas and dynamic partials - Fast but clean implementation - User-friendly error messages for parsing errors - Handy API for use from the CLI - Supports Clojure, ClojureScript, self-hosted ClojureScript and Babashka Table of Contents - Installation - Usage - Basics - Outputs - Partials - Error messages - CLI usage - Babashka support Installation Add the following to your project's dependencies: Usage In this section, you'll see how to use Pogonos, but if you're not so familiar with the Mustache language itself, you might want to read its documentation first. Basics render-string The easiest way to use the library is to just call render-string : render-string takes two arguments; a string that represents a Mustache template, and a map of the values passed to the template. The keys of the map must be keywords. Then, the function will render the template and return the resulting string. If you'd rather write out the rendering result to somewhere, instead of generating a string, you can use outputs to specify where to output the result. See Outputs for details. render-file / render-resource render-string has two look-alike cousins named render-file and render-resource . The only difference between render-string and those functions is that render-string directly takes a template string as an argument whereas render-file and","default_branch":null,"files":null,"tree":[],"storefront":"/r/athos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/athos/pogonos/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}