You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Good morning, {{ name }}!</p>
<p>Here are the things you need to do today:</p>
<ul>
{{ include('/path/to/include/todo.html', {"task": "Task 1"}) }}
{{ include('/path/to/include/todo.html', {"task": "Task 2"}) }}
{{ include('/path/to/include/todo.html', {"task": "Task 3"}) }}
</ul>
todo.html
<li>{{ task }}</li>
Desired Result:
<!DOCTYPE html>
<h1>Hello World!</h1>
<p>Good morning, Joe Bloggs!</p>
<p>Here are the things you need to do today:</p>
<ul>
<li>Task 1</li>
<li>Task 2</li>
<li>Task 3</li>
</ul>
The text was updated successfully, but these errors were encountered:
<p>Good morning, {{ name }}!</p><p>Here are the things you need to do today:</p><ul>
{{ include('todo.html', {"task": "Task 1"}) }}
{{ include('todo.html', {"task": "Task 2"}) }}
{{ include('todo.html', {"task": "Task 3"}) }}
</ul>
Is there a way to include a partial file from within another partial? I'd like to include a repeating sub component from within a component partial.
hello.html
message.html
todo.html
Desired Result:
The text was updated successfully, but these errors were encountered: