dboehmer / coocook

👨‍🍳🦉 Web application for collecting recipes and making food plans
https://coocook.org/
Other
11 stars 2 forks source link

Create SVG badge for GitHub in Perl rather than using img.shields.io #104

Closed dboehmer closed 4 years ago

dboehmer commented 4 years ago

On our project page at GitHub https://github.com/dboehmer/coocook we display a set of badges including one badge showing the number of dishes served until today.

From README.md:

[![dishes served](https://coocook.org/badge/dishes_served.svg)](https://coocook.org/statistics)

Current implementation is in Coocook::Controller::Badge, calculates the number and just redirects to a URL at img.shields.io:

https://img.shields.io/badge/dishes_served-40k-blue.svg

This then serves the actual SVG image:

I'd like to create the SVG code on our side and not rely on an external service.

Task: