Laravel Blade Parser
This package compile laravel blade templates to HTML.
Installation
Via Yarn:
$ yarn add laravel-blade-compiler
or via NPM:
$ npm install laravel-blade-compiler
Usage
Require the package like so:
var laravelBladeCompiler = ;
Then you can use the package like so:
var compiledHTML = ;
Options
Name | Type | Default value | Description |
---|---|---|---|
extends | boolean | true | Enable/disable compiling @extends directives |
folder | string | ./resources/views | Path to the views directory. |
encoding | string | utf8 | Blade templates encoding |
path | string | ./resources/views/welcome.blade.php | Path to the compiled blade template file |