Blade::setEscapedContentTags PHP Method

setEscapedContentTags() public static method

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

Usage Example

示例#1
0
 /**
  * Return template for Angular
  *
  * @return View
  */
 public function index()
 {
     // Change blade tags so they don't clash with Angular
     Blade::setEscapedContentTags('[[[', ']]]');
     Blade::setContentTags('[[', ']]');
     return View::make('addressbook');
 }
All Usage Examples Of Blade::setEscapedContentTags