{"repo":"bnomei/kirby-handlebars","free":true,"listed":false,"github":"https://github.com/bnomei/kirby-handlebars","clone":"git clone https://github.com/bnomei/kirby-handlebars.git","description":"Kirby Component for semantic templates with Handlebars and Mustache","language":"PHP","stars":10,"topics":["handlebars","mustache","cache","component","template-engine","performance","semantic","logic-less","lightncandy","hbs"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Kirby Handlebars / Mustache Kirby Plugin for semantic templates with Handlebars and Mustache Installation - unzip master.zip as folder site/plugins/kirby-handlebars or - git submodule add https://github.com/bnomei/kirby-handlebars.git site/plugins/kirby-handlebars or - composer require bnomei/kirby-handlebars Templates You can can have handlebars and php templates in your /site/templates folder. The plugin will be used as template component for all files with hbs extension and default back to Kirbys core template component for the ones written in php. Partials Partials are stored at /site/template/partials . Think of them as reusable blocks injected into your handlebars templates before they get compiled. /site/templates/partials/piece-of-cake.hbs /site/templates/call-a-partial.hbs /content/pizza/call-a-partial.txt /site/controllers/call-a-partial.php localhost:80/pizza Data For the template to render your content, it needs to know which data to use as variables and list in handlebars. This plugin gives you several ways to provide this data, and you can use them all at once. The data from queries will be merged (recursively) with data from controllers and models. Built-in Queries The plugin has a few queries built-in. This allows you to use the queried result directly in your handlebar templates. For example, you can use {{ page.title }} in any handlebar template without having to define that value yourself. You can override these in the bnomei.handlebars.queries option. Opti","default_branch":null,"files":null,"tree":[],"storefront":"/r/bnomei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bnomei/kirby-handlebars/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."}