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
コード例 #1
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
 }
コード例 #2
0
ファイル: UserController.php プロジェクト: lakedawson/vocal
 /**
  * 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');
 }
コード例 #3
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     $this->mergeConfigFrom(__DIR__ . '/../../../config/veer.php', 'veer');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
コード例 #4
0
 /**
  * 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('{{{', '}}}');
 }
コード例 #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'));
 }
コード例 #9
0
 /**
  * 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
ファイル: routes.php プロジェクト: johnnyvng/l5_laracast
<?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
ファイル: routes.php プロジェクト: krussll/7JVilCZVZQ
|--------------------------------------------------------------------------
|
| 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('[[[', ']]]');
コード例 #12
0
ファイル: routes.php プロジェクト: AshishXhrestha/goe
<?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.
|
*/
Blade::setContentTags('{!', '!}');
Route::get('/', function () {
    return view('Dashboard.index');
});
Route::get('/employees', function () {
    return view('Employee.index');
});
Route::get('/sites', function () {
    return view('Site.index');
});
Route::get('/transactions', function () {
    return view('Transaction.index');
});
Route::resource('dashboard', 'DashboardController');
Route::resource('employee', 'EmployeeController');
Route::resource('site', 'SiteController');
Route::resource('transaction', 'TransactionController');
Route::get('test/{id}', function ($id) {
    $year = DB::select(DB::raw("select monthname(str_to_date(month(workDate),'%m')) as Months,workDate,\n                              (select sum(amount)  from siteemployeerel where monthname(str_to_date(month(workDate),'%m')) = Months and year(workDate) = {$id}) as Amount\n                              from siteemployeerel\n                              where year(workDate) = {$id}\n                              group by(months)\n                              order by(workDate)"));
コード例 #13
0
ファイル: routes.php プロジェクト: Brother-Simon/chat
<?php

use App\User;
use App\Message;
/*
|--------------------------------------------------------------------------
| 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('[%', '%]');
    return view('welcome');
});
get('/users', function () {
    return response()->json(User::all());
});
get('/user/tickets', function () {
    return response()->json([1 => ['name' => '合同1'], 2 => ['name' => '合同2']]);
});
get('/messages', function () {
    return response()->json(Message::all());
});
post('post/store', 'App\\Http\\Controllers\\PostController@store');
コード例 #14
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     //
     \Blade::setContentTags('[%', '%]');
 }
コード例 #15
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']);
コード例 #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
         }
         $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
ファイル: AppServiceProvider.php プロジェクト: echiteri/iBLIS
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
コード例 #19
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');
コード例 #20
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('<%', '%>');
 }