View on GitHub

Adding New Items

Rendering new items

Remake is different from most frameworks in that it mixes the state of your web app with the presentation.

This makes a lot of things easier — including styling the page based on the state of your data.

Another thing it makes easier is adding new items. Because Remake understands where your "Add" button is, it can make a smart guess about which list you want to add your item into.

So, usually a simple data-i-new attribute with a value set to a template name (or an item referenced in a #for loop) is enough to render and add a new item to the page.

→ Sorting Lists of Items

View on GitHub
☰ Menu