Clearly we need some tests but I wonder if it requires some refactoring.
I wonder if it is possible/worthwhile to separate the creation of the temp_badge_code item from the creation of the Latex and perhaps from the generation of the PDF?
This might facilitate some previewing and facilitate some testing.
Maybe into the following functions:
- make_badge_code()
- preview_badge()
- render_badge_pdf()
Thoughts @dokato, @DaveParr?
P
Clearly we need some tests but I wonder if it requires some refactoring.
I wonder if it is possible/worthwhile to separate the creation of the temp_badge_code item from the creation of the Latex and perhaps from the generation of the PDF?
This might facilitate some previewing and facilitate some testing.
Maybe into the following functions:
Thoughts @dokato, @DaveParr?
P