Skip to content

Commit a1686ac

Browse files
committed
Blade got other tags.
1 parent 6e6e298 commit a1686ac

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/Http/routes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@
4444
Route::any('{undefinedRoute}', function ($undefinedRoute) {
4545
return view('layout');
4646
})->where('undefinedRoute', '([A-z\d-\/_.]+)?');
47+
48+
Blade::setContentTags('<%', '%>'); // for variables and all things Blade
49+
Blade::setEscapedContentTags('<%%', '%%>'); // for escaped data

resources/views/layout.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<base href="/">
55
<meta charset="UTF-8">
66
<title>Todo</title>
7-
<script type="application/javascript" src="{{ elixir('js/all.js') }}"></script>
7+
<script type="application/javascript" src="<% elixir('js/all.js') %>"></script>
88
<link rel="stylesheet" href="/css/app.css"/>
9-
<link rel="stylesheet" href="{{ elixir('css/all.css') }}"/>
9+
<link rel="stylesheet" href="<% elixir('css/all.css') %>"/>
1010
</head>
1111
<body ng-app="todoApp" ng-controller="MainController">
1212

0 commit comments

Comments
 (0)