attributes-kit icon indicating copy to clipboard operation
attributes-kit copied to clipboard

Is it possible to make the DOM node optional?

Open danielgtaylor opened this issue 10 years ago • 1 comments
trafficstars

When rendering HTML that includes MSON structures, it would be nice to render using AttributesKit in-place rather than having to define an element with a unique ID and later calling AttributesKit on that element. For example:

<p>I am some HTML</p>
<div class="attributes">
  <script type="text/javascript">
    // This renders my MSON right here inside this `div` element.
    AttributesKit.render(mson);
  </script>
</div>
<p>Some more HTML</p>

Does that make sense? Is this a bad idea?

danielgtaylor avatar Oct 22 '15 23:10 danielgtaylor

@danielgtaylor

Understood.

Let me investigate the possibilities and I'll get back to you.

Baggz avatar Oct 30 '15 09:10 Baggz