Use an include tag to copy in the contents of another template into the current one. The path, specified with a src attribute, will be resolved relative to the path of the current file.

    This set-up:

    1. <!-- components/todo.jl -->
    2. <div class="list-item">
    3. <div class="title">{{ todo.title }}</div>
    4. </div>
    5. <!-- todo_list.jl -->
    6. <div class="list">
    7. <div for-each=todos as="todo">
    8. <include src="components/todo.jl" />
    9. </div>
    10. </div>

    Will be renderered as:

    1. <div class="list">
    2. <div>
    3. <div class="list-item">
    4. <div class="title">Clean your room</div>
    5. </div>
    6. </div>
    7. <div>
    8. <div class="list-item">
    9. <div class="title">Do the dishes</div>
    10. </div>
    11. </div>
    12. </div>