{"repo":"Olian04/gleam_handles","free":true,"listed":false,"github":"https://github.com/Olian04/gleam_handles","clone":"git clone https://github.com/Olian04/gleam_handles.git","description":"A Mustache/Handlebars-style templating language written in pure Gleam.","language":"Gleam","stars":24,"topics":["bun","deno","erlang","gleam","gleam-lang","gleam-language","handlebars","mustache","nodejs","template"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"handles handles is a templating language written in pure Gleam. Heavily inspired by mustache and Handlebars.js. Further documentation can be found at . Usage Documentation Handles is a very simple templating language that consists of a single primitive, the \"tag\". A tag starts with two open braces {{ , followed by a string body, and ends with two closing braces }} . There are three kinds of tags, Property tags, Block tags, and Partial tags. Property tags A property tag is used to access properties passed into the template engine and insert them into the resulting string in-place of the property tag. Values accessed by a property tag must be of type String , Int , or Float , or it will result in a runtime error. Accessing a property which was not passed into the template engine will result in a runtime error. A property tag can refer to a nested property with . separating keys in nested dicts. A property can also refer to the current context element by passing a single . . Block tags A block tag is used to temporarily alter the behavior of the templating engine. Each block tag have two variants; A start tag indicated by a leading # and a stop tag indicated by a leading / . A blocks start tag accepts a property accessor, while the end tag does not. if if blocks are used to conditionally include parts of a templated based on the value of a property. Values accessed by an if block must be of type Bool or it will result in a runtime error. Accessing a property which was not passed","default_branch":null,"files":null,"tree":[],"storefront":"/r/Olian04","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Olian04/gleam_handles/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."}