Renderer.prototype.$0 >= 2.0.0

Description

This can be used to access the current active element inside the template

Examples

Add an attribute to the current active element

Let's create a little template file, like this:

<p class="test">
    <% $0.classList.add('something-else') %>
</p>

When we render this, this will be the result:

<p class="test something-else">
    
</p>