{"repo":"fabiospampinato/picolate","free":true,"listed":false,"github":"https://github.com/fabiospampinato/picolate","clone":"git clone https://github.com/fabiospampinato/picolate.git","description":"A minimalistic and flexible templating engine, inspired by Handlebars.","language":"JavaScript","stars":25,"topics":["engine","minimalistic","template","templating"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Picolate A minimalistic and flexible templating engine, inspired by Handlebars. Install Language The following composable building blocks are supported. Anything else that is not part of any of these building blocks is simply left untouched in the template. Comment A comment does not render anything, it gets stripped out from the template. Expression An expression is eval -ed, its return value coerced into a string, and that gets interpolated in the template. Any valid JS expression can be used. Each An each block can be used to iterate over an array, rendering the content of the block once for each value. The as name part is required, you always need to provide a name to use for each iterated value. An else branch is supported too, it will be rendered when the array is empty. If An if block is only rendered if its expression is truthy. Any valid JS expression can be used. An else branch is supported too, it will be rendered when the condition is falsy. With A with block is conceptually analogous to a with statement, it adds properties of the provided object to the current scope. An else branch is supported too, it will be rendered when the value is falsy. Usage Once you have written a template there are few things that you can do with it: License MIT © Fabio Spampinato","default_branch":null,"files":null,"tree":[],"storefront":"/r/fabiospampinato","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fabiospampinato/picolate/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."}