XaminProject / handlebars.php

Handlebars processor for php
331 stars 134 forks source link

Add registerPartial() functionality like in Handlebars.js #10

Closed hezronobuchele closed 11 years ago

hezronobuchele commented 11 years ago

Is it possible to have a registerPartial() function such as in the JavaScript version? This allows you to bind a dynamic partial like main page content/body with a different file depending on the website page being requested e.g. use registerPartial("body", "contentblocks/list") when using the FileSystem loader as the partials loader and registerPartial("body", "Hello, {{name}}") for the StringLoader.

hezronobuchele commented 11 years ago

Thanks!! Really needed this feature.