For a recent project, we needed to the ability to allow users to embed portions of the site in their own websites and blogs by copy-pasting a little bit of code. This blog post explains how we arrived at a solution for this.
Warning! This blog post gets pretty techy and is intended for other nerds who may find this technique useful in their own...