Got context-sensitive content grabbing/templating working