setEscapedContentTags() 공개 정적인 메소드

Sets the escaped content tags used for the compiler.
public static setEscapedContentTags ( string $openTag, string $closeTag ) : void
$openTag string
$closeTag string
리턴 void
예제 #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');
 }
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('Illuminate\\Contracts\\Auth\\Registrar', 'App\\Services\\Registrar');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
예제 #3
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
 }
예제 #4
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     $this->mergeConfigFrom(__DIR__ . '/../../../config/veer.php', 'veer');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
예제 #5
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{', '}}');
     \Blade::setEchoFormat('nl2br(e(%s))');
     \Form::component('checklist', 'components.form.checklist', ['name', 'options']);
 }
예제 #6
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     parent::boot();
     \Blade::setRawTags("[[", "]]");
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
 }
예제 #7
0
 /**
  * Register any application services.
  *
  * This service provider is a great spot to register your various container
  * bindings with the application. As you can see, we are registering our
  * "Registrar" implementation here. You can add your own bindings too!
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('Illuminate\\Contracts\\Auth\\Registrar', 'Symposium\\Services\\Registrar');
     $this->app->bind('form', function () {
         return new \Illuminate\Html\FormBuilder($this->app->make('Illuminate\\Html\\HtmlBuilder'), $this->app->make('Illuminate\\Routing\\UrlGenerator'), csrf_token());
     });
     $this->app->alias('ttwitter', 'Thujohn\\Twitter\\Twitter');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
예제 #8
0
 public function showAutor($tiposId, $generosId)
 {
     // \Blade::setRawTags("[[", "]]");
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
     $tipos = tipo::find($tiposId);
     $generos = genero::find($generosId);
     $autores = autor::all();
     $arreglo = ['autores' => $autores, 'tipos' => $tipos, 'generos' => $generos];
     return view('texto.selectAutor', compact('arreglo'));
 }
 /**
  * Create the migration.
  *
  * @param string $name
  *
  * @return bool
  */
 protected function createMigration($logTable)
 {
     \Blade::setContentTags("{{", "}}");
     \Blade::setEscapedContentTags("{{{", "}}}");
     $migrationFile = base_path("/database/migrations") . "/" . date('Y_m_d_His') . "_maillog_setup_tables.php";
     $output = $this->laravel->view->make('maillog::generators.migration')->with(['logTable' => $logTable])->render();
     if (!file_exists($migrationFile) && ($fs = fopen($migrationFile, 'x'))) {
         fwrite($fs, $output);
         fclose($fs);
         return true;
     }
     return false;
 }
예제 #10
0
<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Blade::setContentTags('<%', '%>');
// for variables and all things Blade
Blade::setEscapedContentTags('<%%', '%%>');
// for escaped data
Route::get('/', function () {
    return view('welcome');
});
Route::get('foo', function () {
    return 'bar';
});
Route::get('articles', 'ArticlesController@index');
Route::get('articles/create', 'ArticlesController@create');
// {} need to register at the bottom otherwise laravel will load var in the wildcard {id} first
Route::get('articles/{id}', 'ArticlesController@show');
// Store new article
Route::post('articles', 'ArticlesController@store');
/*
|--------------------------------------------------------------------------
| Application Routes
예제 #11
0
/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/
require app_path() . '/filters.php';
/*
|--------------------------------------------------------------------------
| Require The Form Macros File
|--------------------------------------------------------------------------
|
| Load custom form elements to be used throughout the application.
|
*/
require app_path() . '/form-macros.php';
/*
|--------------------------------------------------------------------------
| New tags for echoing escaped content in blade
|--------------------------------------------------------------------------
|
| We have to change the default {{{ }}} tags to something else, since
| they conflict with handlebars tags in javascript.
|
*/
Blade::setEscapedContentTags('{!!', '!!}');
예제 #12
0
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group(array('prefix' => '/api'), function () {
    Route::get('users/latest', 'API\\UsersController@getLatestUser');
    Route::post('users/create', 'API\\UsersController@createUser');
    Route::post('login/auth', 'API\\AuthController@Login');
    Route::post('login/destroy', 'API\\AuthController@Logout');
    Route::get('guides/location', 'API\\GuidesController@getGuidesByLocation');
});
Route::get('/', function () {
    return view('home.welcome');
});
Route::get('login', function () {
    return view('account.login');
});
Route::get('register', function () {
    return view('account.register');
});
Route::post('logout', 'AccountController@Logout');
Route::group(['middleware' => 'auth'], function () {
    Route::get('/dashboard', ['uses' => 'DashboardController@index']);
});
Route::get('s/{location}', ['uses' => 'SearchController@searchGuides']);
Blade::setEscapedContentTags('[[', ']]');
Blade::setContentTags('[[[', ']]]');
예제 #13
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
예제 #14
0
파일: routes.php 프로젝트: ioangogo/gruik
<?php

Blade::setContentTags('{%', '%}');
Blade::setEscapedContentTags('{%%', '%%}');
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', ['uses' => 'HomeController@home']);
Route::get('/explore', ['uses' => 'HomeController@explore']);
Route::get('/view/{id}', ['uses' => 'PostController@view']);
Route::get('/login', ['uses' => 'HomeController@login']);
Route::get('/register', ['as' => 'register', 'uses' => 'HomeController@register']);
Route::get('/forgot-password', ['uses' => 'HomeController@forgotPassword']);
Route::get('/password-reset/{token}', ['as' => 'passwordReseter', 'uses' => 'HomeController@passwordReset']);
Route::post('/forgot-password', ['uses' => 'AuthController@forgotPassword']);
Route::post('/reset-password', ['uses' => 'AuthController@resetPassword']);
Route::post('/login', ['uses' => 'AuthController@login']);
Route::post('/register', ['uses' => 'AuthController@register']);
Route::get('/logout', ['uses' => 'AuthController@logout']);
Route::get('/user/{username}', ['as' => 'user_profile', 'uses' => 'UserController@profile']);
Route::get('/search', ['as' => 'search', 'uses' => 'SearchController@search']);
Route::group(array('before' => 'auth'), function () {
    Route::get('/create', ['uses' => 'PostController@edit']);
    Route::get('/dashboard', ['as' => 'dashboard', 'uses' => 'PostController@dashboard']);
예제 #15
0
파일: routes.php 프로젝트: gemox94/mariasg
<?php

Blade::setContentTags('[[', ']]');
// for variables and all things Blade
Blade::setEscapedContentTags(',.', '.,');
// for escaped data
require 'routes/API.php';
require 'routes/auth.php';
require 'routes/www.php';
예제 #16
0
 public function autorEdit($id)
 {
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
     $arreglo = ['autores' => autor::all(), 'textoId' => $id];
     return view('texto.folderEdit.autorEdit', compact('arreglo'));
 }
예제 #17
0
파일: routes.php 프로젝트: Lazybin/huisa
             $output[$resourceName] = $json;
         }
         $filename = $docDir . '/api-docs.json';
         file_put_contents($filename, Swagger::jsonEncode($resourceList, true));
         foreach ($output as $name => $json) {
             $name = str_replace(DIRECTORY_SEPARATOR, '-', ltrim($name, DIRECTORY_SEPARATOR));
             $filename = $docDir . '/' . $name . '.json';
             file_put_contents($filename, $json);
         }
     }
 }
 if (Config::get('swagger.behind-reverse-proxy')) {
     $proxy = Request::server('REMOTE_ADDR');
     Request::setTrustedProxies(array($proxy));
 }
 Blade::setEscapedContentTags('{{{', '}}}');
 Blade::setContentTags('{{', '}}');
 //need the / at the end to avoid CORS errors on Homestead systems.
 $response = response()->view('swagger::index', array('secure' => Request::secure(), 'urlToDocs' => url(Config::get('swagger.doc-route')), 'requestHeaders' => Config::get('swagger.requestHeaders')));
 //need the / at the end to avoid CORS errors on Homestead systems.
 /*$response = Response::make(
       View::make('swaggervel::index', array(
               'secure'         => Request::secure(),
               'urlToDocs'      => url(Config::get('swaggervel.doc-route')),
               'requestHeaders' => Config::get('swaggervel.requestHeaders') )
       ),
       200
   );*/
 if (Config::has('swagger.viewHeaders')) {
     foreach (Config::get('swagger.viewHeaders') as $key => $value) {
         $response->header($key, $value);
예제 #18
0
파일: routes.php 프로젝트: andbet39/things
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
    Blade::setContentTags('[[', ']]', true);
    // for variables and all things Blade
    Blade::setEscapedContentTags('[[[', ']]]', true);
    // for escaped data
    return view('spa/index');
});
Route::get('/post', 'PostController@index');
Route::get('/entry', 'EntryController@index');
Route::get('/entry/create', 'EntryController@create');
Route::get('/entry/delete/{id}', 'EntryController@delete');
Route::post('/entry/store', 'EntryController@store');
Route::get('/test', function () {
    return view('welcome');
});
// Authentication routes...
Route::get('auth/login', 'Auth\\AuthController@getLogin');
Route::post('auth/login', 'Auth\\AuthController@postLogin');
Route::get('auth/logout', 'Auth\\AuthController@getLogout');
예제 #19
0
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
//User Authentication routes
Route::get('login', ['as' => 'login', 'uses' => 'Auth\\AuthController@getLogin']);
Route::post('login', ['as' => 'login', 'uses' => 'Auth\\AuthController@postLogin']);
Route::get('logout', ['as' => 'logout', 'uses' => 'Auth\\AuthController@getLogout']);
Route::get('/{page?}', ['as' => 'home', 'uses' => 'HomeController@getHome'])->where('page', '[0-9]+');
Route::get('/post/{id}', ['as' => 'post', 'uses' => 'HomeController@showArticle']);
//TODO add middle ware auth
Route::group(['middleware' => 'auth', 'prefix' => 'admin'], function () {
    //Route::group(['prefix'=>'admin'],function(){
    Route::get('dashboard', ['as' => 'dashboard', 'uses' => function () {
        $user = Auth::user();
        return view('auth.dashboard', ['user' => $user]);
    }]);
    Route::resource('article', 'Auth\\ArticleController');
});
// Using different syntax for Blade to avoid conflicts with Angular template.
\Blade::setContentTags('[[', ']]');
// For variables and all things Blade.
\Blade::setEscapedContentTags('{{--', '--}}');
// For escaped data.