include/includeIf

The @include tag allows you include a partial to a given template.

@include('partials/header')

You can also use variables to define the partial path.

@include(headerPartial)

You can also make use of the @includeIf tag to include a partial conditionally. The first argument is the condition to evaluate before including the partial.

@includeIf(post.comments.length, 'partials/comments')