HTML templating helper functions written in a Continuation-Passing Style for JavaScript, Python, and Ruby