Templates: Separate function for glyph retrieval, fixes #12