laravel-blade-jade
Create laravel blade views using jade
Install
$ npm install --save-dev laravel-blade-jade
// Gulpfile.jsconst elixir = ;;;
Usage
Trigger
$ gulp blade
// index.jadedoctype htmlhtmlheadtitle @'title'body@@sidebarmasterp This is the master sidebar@stopcontainer: row@'content'
<!-- index.blade.php -->@yield('title')@include("partials.foo-bar", ['key' => 'val'])@section('sidebar')This is the master sidebar.@stop@yield('content')
Files containing _*.jade
not be rendered.
API
mix.blade(options)
options
Type: object
All options supported by the Jade API are supported
sourcePath
Type: string
, null
Default: "resources/assets/blade"
outputPath
Type: string
, null
Default: "resources/views"
basedir
Type: string
, null
Default: null
locals
Type: object
Default: {}
pretty
Type: boolean
, string
Default: true
Official Documentations
- Documentation for Elixir can be found on the Laravel website.
- Documentation for Jade can be found on the Jade website.
- Documentation for Elixir repositories can be found on the Github
Notes
If you using version 1.0
please check docs
Related
- bladejs-core - API for this module
License
MIT @ Guntur Poetra