laravel-handlebars
laravel-handlebars copied to clipboard
:bicyclist: Laravel wrapper of LightnCandy for using Handlebars (and Mustache) templates
I have 3 handlebars template files inside `views/templates` directory: `test.hbs`: ``` Hello {{> testPartial}} ``` `testPartial.hbs`: ``` This is inside a partial {{> testPartial2}} ``` `testPartial2.hbs`: ``` This is inside...
I got this message when i used customer helper in .hbs file.
Thanks for this package and I realise it's quite old but it's an important piece of my app. Is Laravel 8 compatibility just a matter of updating the dependancies? I'm...
Do not reregister BladeCompiler in Service Provider. It will already have been registered by the framework. Re-registering will cause Blade::withoutDoubleEncoding(); that has been called in AppServiceProvider to be effectively ignored,...
I'm using laravel 5.2 and raw output doesn't work for me **File:** resources/views/test/sample.hbs ``` {{title}} {{body}} ``` **File:** resources/views/template/default.blade.php ``` ... @raw('test.sample') ... ``` **Output:** ``` ``` Basically {{title}} and...
Ok so I realise this is a niche feature most people won't use, but I find especially useful when using a template engine like this. View composers work fine for...
This is an automated pull request from [Shift](https://laravelshift.com) to update your package code and dependencies to be compatible with Laravel 11.x. **Before merging**, you need to: - Checkout the `l11-compatibility`...
## 'Use of "self" in callables is deprecated' [This line](https://github.com/ProAI/laravel-handlebars/blob/658bc711db83430bff8889fdcc3139f8bc8da59f/src/Engines/HandlebarsEngine.php#L31C34-L31C54) uses the following syntax for passing a function to `array_map`: ```php $data = array_map('self::convertObjectToArray', $data); ``` PHP 8.2 has [deprecated](https://wiki.php.net/rfc/deprecate_partially_supported_callables)...
I have tried to create a helper function to render dynamic partials in my code. I've added these in the `config/handlebars.php` file: ``` 'flags' => LightnCandy::FLAG_HANDLEBARSJS | LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_RUNTIMEPARTIAL,...