Juan-Pablo Scaletti
Juan-Pablo Scaletti
```javascript import { tns } from "tiny-slider/src/tiny-slider"; const slider1 = tns({ container: ".slider1", items: 4, controls: false, navPosition: "bottom", mouseDrag: true, autoplay: false, autoplayButtonOutput: false }); const slider2 = tns({...
And for several sliders with the same attributes, as @ausbran said: ```javascript document.querySelectorAll('.my-slider').forEach(slider => { tns({ container: slider // options here }); }); ```
It's definitely on the roadmap! I was thinking of *maybe* reusing Jinja's `{% block %}` feature to do it, but I haven't had the time to investigate or do it...
> I have just discovered JinjaX. I really like the super clean syntax, and the ease of passing attributes to components. Awesome work! Thank you 😊
I ended following @CiberNin suggestion. Available since [0.45](https://github.com/jpsca/jinjax/releases/tag/0.45)