How i can use @stack and @push on blade rakit ? #41
Replies: 2 comments
-
|
Unfortunately, there's no such functionality as of now. If I understand it correctly, you can use For example: File: @layout('layouts.app')
@section('content')
<h1>This is content section</h1>
@endsection
@section('custom_js')
<script src="{{ asset('admin/js/custom.min.js') }}" type="text/javascript"></script>
@endsection
@section('custom_css')
<style type="text/css">h1 { color: red; }</style>
@endsectionFile: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Foo bar</title>
@yield('custom_css')
</head>
<body>
<div>
@yield('content')
</div>
<script src="https://foobar.com/js/xxx.js"></script>
@yield('custom_js')
</body>
</html> |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
The directives |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i need alternative
@stackand@pushbecause when i using
@sectioni can't stack every my script on my@includefilesBeta Was this translation helpful? Give feedback.
All reactions