makes a get_document function available in templates
Merge pull request #22 from rosskarchner/get_document_function

makes a get_document function available in templates