Commit

5b5c293

Today's WildflowerJS feature focus: queries. Queries are built into the full dist, so you get SSR and queries together. Our query system is declarative and very easy to understand.
<p data-show="$products.isLoading">Loading…</p>
<ul data-query="products">
    <template><li data-bind="name"></li></template>
</ul>

wildflower.query('products', {
    from: '/api/products',
    key: 'id',
    refresh: ['focus', 'etag:60'],
    retry: 3
});
And it integrates seamlessly with our SSR implementation, so what comes in the SSR behaves as the first result and there's no flashing when loaded. Writes behave similarly. You declare the endpoint with to: and call write(). The change shows immediately, and the server response either confirms or rolls it back. Any JSON route works, including a Laravel or Symfony controller. https://www.wildflowerjs.com/docs/data-query/
WildflowerJSData Queries | WildflowerJSBind markup to an external data source and declare how fresh it should stay. The framework fetches, renders, refreshes, and handles the loading, error, and stale states for you.

commit 5b5c293