Proof of Concept: Components
This blog post is not for pleasure reading. I’m using it to prove, show-off, and repeatedly test components I’m developing for this site. It gets pretty nerdy.
- Front-end Components
I’ve put together a component that collects footnotes inline during the output of an article, and then later we call the component to output the actual text of the collected footnotes. They are numbered automatically. If one of them fails, no superscript number is output.
Later, wherever I want the footnotes to appear, I call:
I like this solution because it fails gracefully (ie no output), and all the information is in one place: right where the writer was already thinking about it.
In my template, the above HTML is captured and passed to the obfuscator (gist not actually updated, it’s just an example):
This yields the following HTML:
I’ll check on that search result every once in a while. If you get this page in your search results, please let me know using the contact form and I'll send some puzzle ranking points your way.