tpl-php
Renderer for Drupal 7 .tpl.php
files for use with pattern libraries.
Installation
npm install tpl-php
Dependencies
- Node 7+
- PHP 5+
Usage
Your template:
Good morning,
In node:
const tpl = ; ; // <h1>Good morning, Alasdair</h1> // if the template executes with errors, you can toggle whether they're shown in the output or not;
Development
- run tests with
npm test
- tests are located in the
spec
directory, and are based onjasmine
.