Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

[NOT MAINTAINED] NPM Package that compiles Blade template language to HTML

License

Notifications You must be signed in to change notification settings

pbelyaev/laravel-blade-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Blade Parser

Build Status NPM Downloads NPM Version NPM License

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 = require('laravel-blade-compiler');

Then you can use the package like so:

var compiledHTML = laravelBladeCompiler({
    folder: 'path/to/views/folder',
    path: 'path/to/template.blade.php'
});

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

About

[NOT MAINTAINED] NPM Package that compiles Blade template language to HTML

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published