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

<div class="lh-container">
<div>Your first setting is {{section.settings.first}}</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

@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 }}

If you love LayoutHub, could you consider posting an review? That would be awesome and really help us to grow our business, here is the link.