 into a widget that can be easily called anywhere.</p>
<ul class="simple">
<li><strong>To define a widget:</strong> Use a route with a special <code class="docutils literal"><span class="pre">widget</span></code> attribute. To establish a proper binding, the value of <code class="docutils literal"><span class="pre">pd_widget</span></code> must match the route&#8217;s widget value.</li>
<li><strong>To invoke a widget:</strong> Apply the pd_widget custom attribute to a &lt;div&gt; element and set its value to