Skip to content

Support Laravel 5.0 Blade Syntax #20

@mikedugan

Description

@mikedugan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions