37
loading...
This website collects cookies to deliver better user experience
@import(header)
<p>Your awesome content</p>
@import(footer)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>@attach(title)</title> <!-- render your title above -->
</head>
<body>
@attach(section) <!-- render everything from section above -->
</body>
</html>
@layout(base) <!-- 'base' is your html file name, could be anything -->
@section(title, Your Page Title)
@section
<main>
Hey.. meet your awesome content
</main>
@endsection
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>@attach(title)</title> <!-- render your title above -->
</head>
<body>
@import(header)
@attach(section) <!-- render everything from section above -->
@import(footer)
</body>
</html>
<div>
<div class="flex is-space-around">
<div class="someClass">
@attach(fullDiv)
</div>
<p>@attach(textOnly)</p>
</div>
</div>
<h2>Other stuff</h2>
@component(story)
@slot(fullDiv)
<p>😀 I'm slot with name text</p>
<p>I can be very complex element</p>
@endslot
@slot(textOnly)
I can also be just text like this
@endslot
@endcomponent
npm run dev\
) to generate final static sites for you. I also integrate live server, so you can have localserver running while you are building your sites.