I've got some non-node data in a custom module of mine and I would like to invoke a template to display the data. This template may get reused for email output, and I would like to basically just bootstrap Drupal and use the template as needed.
I thought I could just do something like:
$html = theme('verysmallsnippet', $my_fancy_data_structure);
...then create a verysmallsnippet.tpl.php file in active theme folder and then expect Drupal to find the template file and evaluate the template with the arguments passed to the theme function. Is this a vast over-simplistic interpretation of how the template engine works -- or do I need to setup the theme registry first? Or What?
I looked at this question, as well as the theme documentation, and I'm a bit lost.