Blade::setContentTags PHP Method

setContentTags() public static method

Sets the content tags used for the compiler.
public static setContentTags ( string $openTag, string $closeTag, boolean $escaped = false ) : void
$openTag string
$closeTag string
$escaped boolean
return void
        public static function setContentTags($openTag, $closeTag, $escaped = false)
        {
            \Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
        }

Usage Example

示例#1
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
 }
All Usage Examples Of Blade::setContentTags