Skip to content

Conversation

@wilczynskiwm
Copy link

This PR adds support for dynamic attribute rendering in the lucide template tag.

What changed

  • Added takes_context=True to enable access to template context
  • Implemented template syntax detection in attribute values
  • Added safe rendering with fallback for syntax errors

Example usage

{% lucide "user" class="{{user_class}}" data-id="{{user.id}}" %}

Enable Django template syntax evaluation in lucide tag attributes.
Attributes containing template variables or template tags are now
rendered using the current template context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant