Laravel @yield内部用于刀片视图引擎的html标记

Is this possible?

<html @yield( 'AngularNamespace' )>
</html>

Obviously the above doesn't work...

It works for me.

As long as your other template file has

@section('AngularNamespace', 'NameSpaceHere')

Its best to just pass a variable into your view, or create a view composer to bind the variable to that particular view.

Controller:

return View::make('myView', ['AngularNamespace' => $AngularNamespace]);

Or View Composer:

View::composer(['layouts.master'], function($view){

    $view->with('AngularNamespace', 'myNameSpace');

});

View:

<html {{ $AngularNamespace }} >
</html>