hunteryun / blade
A Blade Template Engine for Drupal.
Installs: 57
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
pkg:composer/hunteryun/blade
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-09-21 23:18:05 UTC
README
A Blade Template Engine for Drupal.
Installation
With Composer, you just need to run
composer require hunteryun/blade
If you haven't use composer, you should add all the files in folder src
to your project folder,
and then require
them in your code.
Usage
<?php use Hunter\Engine\BladeEngine; $path = ['/view_path']; // your view file path, it's an array $cachePath = '/cache_path'; // compiled cache file path $engine = new BladeEngine($path, $cachePath); $variables['name'] = 'Drupal Hunter'; return $engine->setTemplate('hello.html')->setParameters($variables)->render('hello.html', $variables);
Documentation: http://laravel.com/docs/5.3/blade