Replies: 2 comments 3 replies
-
Hey @ekimkael! 👋🏻 The We recommend using the component API from now on. <!-- resources/views/components/layouts/main.edge -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- ... -->
</head>
<body>
{{{ await $slots.main() }}}
</body>
</html> <!-- resources/views/pages/home.edge -->
@layouts.main()
<h1>Hello World</h1>
@end |
Beta Was this translation helpful? Give feedback.
3 replies
-
@component('main/layout/master') test@EnD @endcomponent |
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.
-
Hi guys,
I tried Adonisjs version 6 yesterday but as I was reading the doc of Edge I didn't found
@section
and@layout
tags.I tried to use them and it didn't work. Can you please redirect me to the new way of handling layouts please?
Beta Was this translation helpful? Give feedback.
All reactions