Develop and test Basil web applications with HTTP handlers, routing, sessions, authentication, databases, and interactive components (Parts).
Use when:
Use this skill when you need to:
Basil is a web framework for Parsley (the language):
Basil provides HTTP server, routing, sessions, auth, database, interactive components (Parts), and asset bundling.
# Initialize project
./basil --init myapp && cd myapp
# Run dev server (auto-reload, detailed errors, dev tools at /__dev/log)
./basil --dev
# Test
curl http://localhost:8080/
Parsley files that handle HTTP requests.
// site/index.pars
<html>
<body>
<h1>"Welcome!"</h1>
<p>`Search: {@params.q ?? 'none'}`</p>
</body>
</html>