This is a wrapper around gulp-aglio for Laravel Elixir.
npm install --save-dev laravel-elixir-aglio
var elixir = require('laravel-elixir');
require('laravel-elixir-aglio');
elixir(function(mix) {
mix.aglio();
});
This will scan your resources/assets/_md/
directory for all files. Instead you can choose a custom location:
mix.aglio("markdown/*.md");
This will scan your resources/assets/markdown
directory for .md
files.
For overriding the resources/assets
part, create a elixir.json
and change the assetsDir
(do not forget the trailing slash):
{
"assetsDir": "resources/assets/"
}
This will output the processed files to resources/views/blueprint
. If you'd like to output to a different directory then you may override this as well:
mix.aglio(
"markdown/*.md",
"blueprint"
);
On the third argument you could pass gulp-aglio options and a different extension
(the default one is php
).
mix.aglio(
'_md/*.md',
'blueprint',
{
template: 'default',
extension: '.blade.php'
}
);
Route::get('/blueprint/api', function () {
return View::make('blueprint.api')
});
Laravel Elixir Aglio is open-sourced software licensed under the MIT license