attributes-kit
attributes-kit copied to clipboard
Is it possible to make the DOM node optional?
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
Understood.
Let me investigate the possibilities and I'll get back to you.