Includes

The include statement takes the code in the specified file and copies it into the file that uses the include statement.

{section-folder}/section.lh
<div class="lh-container">
<div>Your first setting is {{section.settings.first}}</div>
@include('test')
</div>

For the above example, the file "test.lh" is placed in the "includes" folder

We can pass the variable from the section.lh file into the included file using the syntax bellow

{section-folder}/section.lh
@include('test', {'variable_name': 'This is the value of variable assigned'})

In the file included (test.lh), we use syntax below to call variable has been passed from section.lh file

{{ section.assign.variable_name }}