Just like in most programming languages, you can include other files within your file so you can prevent coding issues as copy paste and make it easier to make other template files. In FLEX, we have the same concept. You can include any flex file within another flex file.


{% include header.flex %}
<div class="my-page-content">
<h1>Welcome to My Page</h1>
{% include footer.flex %}
{% include just_for_fun.flex %}

FLEX include files cannot be included within include files. For example, you cannot have an include inside header.flex if header.flex is being included inside a file called index.flex.

Start your free, no-risk trial today.