Closed Mrredstone5230 closed 5 months ago
hey, at first glance it looks great again. i hope i'll be able to take a closer look tomorrow! to be honest, i'm already very excited :D
Alright, I just tested my example and it almost perfectly worked. I only changed the default origin and now it's looking good! I also tested using some variables set in the variables tag, and it worked!
Hi! This adds a "templatable" component which will add all the components that are listed in the "template" tag/list (which is obviously templatable). This is a pretty advanced component, since this is used to dynamically add components to pages, and it's supposed to use jinja a lot.
Here's an example use of this. This is an example page that shows a "grid" of entities, but it only shows a pixel if it's on or off, or etc... I didn't want to create this as an integrated component, since there's a lot of things users might want to customize, so here I made it in components. Also, in the example, the first variables could be set using our own variables tag.
And here's the jinja template with proper formatting and all
(I'll publish this example properly in the discussions afterwards 😉)
Hope you like it!