Helpers to aid in the generation of ESC/POS templates.