code: def badge_svg_text(self):
          
  
          # Identify whether template is a file or the actual template text
          if len(self.template.split('\n')) == 1:
              with open(self.template, mode='r') as file_handle:
                  badge_text = file_handle.read()
          else:
              badge_text = self.template
  
          return badge_text.replace('{{ badge width }}', str(self.badge_width)) \
              .replace('{{ font name }}', self.font_name) \
              .replace('{{ font size }}', str(self.font_size)) \
              .replace('{{ label }}', self.label) \
              .replace('{{ value }}', self.value_text) \
              .replace('{{ label anchor }}', str(self.label_anchor)) \
              .replace('{{ label anchor shadow }}', str(self.label_anchor_shadow)) \
              .replace('{{ value anchor }}', str(self.value_anchor)) \
              .replace('{{ value anchor shadow }}', str(self.value_anchor_shadow)) \
              .replace('{{ color }}', self.badge_color_code) \
              .replace('{{ label text color }}', self.label_text_color) \
              .replace('{{ value text color }}', self.value_text_color) \
              .replace('{{ color split x }}', str(self.color_split_position)) \
              .replace('{{ value width }}', str(self.badge_width - self.color_split_position))
docs: The badge SVG text.