Skip to content

Instantly share code, notes, and snippets.

Avatar

Tomáš Lištiak tomexx

View GitHub Profile
@tomexx
tomexx / jade-to-laravel-blade-mixins.jade
Last active Aug 29, 2015 — forked from franzose/jade-to-laravel-blade-mixins.jade
Mixin enhancements (include within if-else clause, +foreach fix, +inlude fix for passing more parameters)
View jade-to-laravel-blade-mixins.jade
//- As you may know, Laravel 5 provides the Elixir to compile assets with no pain.
These mixins is for those of you who want to use Jade power combined with that of Laravel Blade.
The syntax mimic Blade statements, however identation differs in some cases.
- var newline = "\r\n"
- var loopIterator = '$iterator'
//- @extends mixin
Example: +extends('layouts/master')
Compiled: @extends('layouts/master')
mixin extends(file)
| @extends('#{file}')