Biff:一个包含电池的Clojure Web框架
Biff – a batteries-included web framework for Clojure

原始链接: https://biffweb.com

Biff 从整个生态系统中收集整理库和工具,并将它们组合成一个完善的整体。让不变性不仅体现在你的代码中,也体现在你的数据库中。Biff 使用 Malli 进行模式强制。无需离开后端即可创建丰富、交互式的 UI。加入少许 hyperscript 用于轻量级客户端脚本。支持魔法链接和一次性密码流程的无密码、基于电子邮件的身份验证。Biff 提供了配置 Ubuntu VPS 的代码,或者你可以使用 Docker 部署 Uberjar。每当你保存文件时,更改都会被评估。连接到生产 REPL,并动态开发你的整个应用程序。你可以阅读教程、深入参考文档,或者试用入门项目并检查文档字符串。强大的默认值,松散的约束。Biff 的设计理念是易于拆卸和修改,因此它不会随着你的需求变化而成为阻碍。

Biff, a Clojure web framework, is receiving a status update from its creator, jacobobryant, on Hacker News. He's focusing on features for larger codebases in a rewrite of a Biff app and plans to integrate XTDB v2 after. A point of discussion is Biff's use of Hiccup for HTML generation. Some users would prefer external template files, but it's emphasized that Hiccup is essentially Clojure data structures. Alternatives like Selmer are also mentioned. The "batteries-included" nature of Biff sparks debate. Daviey questions the definition and provides Python as an example. Alternative frameworks like Zodiac, which includes fewer batteries, are offered. The overall sentiment suggests Clojure is stable and productive. Despite lacking mainstream hype, users like yogthos find it relevant and beneficial for tasks.

原文

Biff curates libraries and tools from across the ecosystem and composes them into one polished whole.

Bring immutability to your database, not just your code. Biff adds schema enforcement with Malli.

Create rich, interactive UIs without leaving the backend. Throw in a dash of _hyperscript for light client-side scripting.

Passwordless, email-based authentication, with support for magic link and one-time passcode flows.

Biff comes with code for provisioning an Ubuntu VPS, or you can deploy an Uberjar with Docker.

Changes are evaluated whenever you save a file. Connect to a production REPL and develop your whole app on the fly.

Get started with the tutorial, delve into the reference docs, or tinker with the starter project and inspect the doc strings.

Strong defaults, weakly held. Biff is designed to be taken apart and modified, so it doesn't get in the way as your needs evolve.

联系我们 contact @ memedata.com