When documenting style guides, maintaining parity between your "living" demos and code samples can be a pain in the butt. dataCodeBlock automates that.
UL
uses the
data-codeblock
attribute
#target-div
selector and appends there.
^^ You should view-source to see what just happened there.
data-codeblock
attribute to your demo markup
Code can be appended to a specified target anywhere on the page. No specified value simply appends right after the example.
Tiny jQueries, made with ♥ by Dave Rupert