Make web dev SANE again.
<script server>
// GET /books/:id
server.get('/:id', async (req, res) => {
const book = await Book.findById(req.params.id)
res.render(self, { book })
})
</script>
<main>
<h1>Book Detail</h1>
<p>Title: {= book.title}</p>
<p>Author: {= book.author}</p>
</main>
SaneJS.zip
npm install
npm run dev
Watch the video