-
Notifications
You must be signed in to change notification settings - Fork 24
Support Laravel 5.0 Blade Syntax #20
Copy link
Copy link
Open
Description
For better or for worse, default blade syntax for HTML in L5 is now {!! $var !!}.
Local workaround:
- views/index.blade.php - change
{{ $child }}to{!! $child !!} - Modules/Debug/default.blade.php - change
{{ $debug }}to{!! $debug !!} - Modules/History/default.blade.php - change
{{ $history->links() }}to{!! $history->links() !!} - Modules/Info/default.blade.php - change
{{ $info }}to{!! $info !!} - Modules/Dashboard/default.blade.php - change
{{ $widget->view }}to{!! $widget->view !!}
Alternatively, you theoretically should be able to bind the old escaped echo delimiters to Blade using \Blade::setEscapedContentTags('{{', '}}'), but I'm having trouble getting that to work (tried it at the end of the BaseController constructor).
Great work! Can't wait to see this evolve over time!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels