Direkt zum Hauptinhalt

Special Helpers (QR-Codes)

Currently, we provide a special handlebars helper that can be used in templates:

QR-Code Helper

Syntax: {{qrcode <content> <dark_color> <light_color>}}

With this helper, you can create QR-Codes (as svg) with the specified content (e.g. a URL). Optionally, you can provide a dark and/or a light colour (as hex string) to be used in the QR-Code.

Examples:

{{qrcode "https://verfassungsblog.de"}} - Creates a simple QR-Code leading to verfassungsblog.de with black colour on white background

{{qrcode "https://verfassungsblog.de" "#FB5074"}} - Creates a QR-Code with pink colour on white background