from django import template
from django.conf import settings

register = template.Library()

@register.inclusion_tag('accounts/turnstile_widget.html')
def turnstile_widget():
    """
    Template tag to render the Cloudflare Turnstile widget.
    Usage: {% load turnstile_tags %}{% turnstile_widget %}
    """
    return {
        'site_key': settings.TURNSTILE_SITE_KEY
    }
