A small project that collects various nice things to get started with Go Web Development.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
619 B

<script>
let Data = new PaginateTable("/api/shopping/products")
</script>
<h1>Products</h1>
<p>I have these products for you:</p>
<block x-data="Data">
<template x-for="item in contents">
<bar class="bg-gray-800">
<shape x-text="item.Slug"></shape>
<div>
<h4 x-text="item.Title"></h4>
<aside x-text="item.Description"></aside>
<bar class="justify-between" style="padding:30px">
<div class="text-2xl">Price: <span x-text="item.Price"></span></div>
<a href="/shopping/checkout"><button type="button">Buy</button></a>
</bar>
</div>
</bar>
</template>
</block>