PHPackages                             iamntz/handlebars.wp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. iamntz/handlebars.wp

ActiveLibrary[Templating &amp; Views](/categories/templating)

iamntz/handlebars.wp
====================

Utilities for Handlebars.php to be used in WordPress development.

v1.0.0(5y ago)11.4kMITPHP

Since Aug 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/iamntz/handlebars.wp)[ Packagist](https://packagist.org/packages/iamntz/handlebars.wp)[ RSS](/packages/iamntz-handlebarswp/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

What is this?
-------------

[](#what-is-this)

Since dawn of time, WordPress encouraged mixing PHP and HTML code. This should stop! Here is an utility that will help you to deal with some stuff.

This package was built by being actually used and is a wrapper/helper for [Handlebars.php](https://github.com/XaminProject/handlebars.php) adapted to WordPress usage. It provides separation of HTML/PHP, cascade fallback (i.e. you can allow users to overwrite template files) and much more.

So instead of one file like this:

```
while( have_posts() ){ the_post();
  ?>
