Bialet#
Enhance HTML with a native integration to a persistent database
import "bialet" for Response
// String for the template
var title = "Welcome to Bialet"
// Query object, not a string
var user = `SELECT * FROM users WHERE id = 1`.first()
// Output the template
Response.out('
<html>
<head>
<title>%( title )</title>
</head>
<body>
<h1>%( title )</h1>
<p>Hello <em>%( user["name"] )</em></p>
</body>
</html>
')
Bialet is a full-stack web framework that integrates the object-oriented Wren language with a HTTP server and a built-in SQLite database in a single app, creating a unified environment for web development.