The HTML markup for this example:
{% apply escape %} {{ "{% component 'demoTodo' %}" }} {% endapply %}
Wait, only one line is needed?
Yes! unlike the AJAX example, components are simple building blocks that can be used with a small amount of code.
The demoTodo
component used here is provided by the plugin called Winter\Demo, you can find it in the plugins/winter/demo
folder.