mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 16:04:10 -05:00
82 lines
3 KiB
PHP
82 lines
3 KiB
PHP
<?php
|
|
/**
|
|
* Part of Radic - Blade Extensions
|
|
*
|
|
* @author Robin Radic
|
|
* @license MIT License - http://radic.mit-license.org
|
|
* @copyright (c) 2011-2015, Robin Radic - Radic Technologies
|
|
* @link http://radic.nl
|
|
*/
|
|
|
|
return array(
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Blacklisting of directives
|
|
|---------------------------------------------------------------------
|
|
|
|
|
| These directives will be excluded.
|
|
|
|
|
*/
|
|
'blacklist' => array(),
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Markdown options
|
|
|---------------------------------------------------------------------
|
|
|
|
|
*/
|
|
'markdown' => array(
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Enable markdown directives
|
|
|---------------------------------------------------------------------
|
|
|
|
|
*/
|
|
'enabled' => true,
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Markdown renderer class
|
|
|---------------------------------------------------------------------
|
|
|
|
|
| Class that renders markdown. Needs to implement Radic\BladeExtensions\Contracts\MarkdownRenderer
|
|
|
|
|
*/
|
|
'renderer' => 'Radic\BladeExtensions\Renderers\ParsedownRenderer',
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Enable view compiler
|
|
|---------------------------------------------------------------------
|
|
|
|
|
| Enables markdown view compiler.
|
|
| This will enable you to use View::make('my_markdown_file') on `my_markdown_file.md`.
|
|
| Or use @include('my_markdown_file')
|
|
|
|
|
*/
|
|
'views' => true
|
|
),
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Directives overrides
|
|
|---------------------------------------------------------------------
|
|
|
|
|
| You can override any blade-extensions directive.
|
|
| For reference see the directives.php file in the blade-extensions/src views
|
|
*/
|
|
'overrides' => array(/*
|
|
'macro' => array(
|
|
'pattern' => '/(?<!\\w)(\\s*)@macro(?:\\s*)\\((?:\\s*)[\'"]([\\w\\d]*)[\'"],(.*)\\)/',
|
|
'replacement' => '$1<?php if(array_key_exists("form", $__env->getContainer()->getBindings())){ echo app("form")->$2($3); } ?>'
|
|
)
|
|
*/
|
|
),
|
|
/*
|
|
|---------------------------------------------------------------------
|
|
| Enable example views
|
|
|---------------------------------------------------------------------
|
|
|
|
|
| If enabled, several example views including layout, views and embed partials
|
|
| will be available under the blade-ext::<view> namespace. Use vendor:publish --tag=view
|
|
| to publish to your own resources folder. Based on bootstrap 3.3
|
|
*/
|
|
'example_views' => env('BLADE_EXTENSIONS_EXAMPLE_VIEWS', false)
|
|
|
|
);
|