mixxorz / slippers

A UI component framework for Django. Built on top of Django Template Language.

Home Page:https://mitchel.me/slippers/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`{% attrs %}` do not render attributes starting with a `@`

jlopinto opened this issue · comments

Hi,

Trying to marry Slippers with AlpineJS I found that attributes starting with @ do not render.

Component definition:

<button {% attrs type @click %}>{{ children }}</button>

Usage:

{% #button type="button" @click="open = true" %}Open something{% /button %}

Render:

<button>Open something</button>

It's not even rendering the type attribute

Special character support added in #23.

I've released version 0.5.0a0 which addresses this issue. Could you please give it a try?

pip install slippers==0.5.0a0

I confirm, It now works as expected!