itang / cljwtang Goto Github PK
View Code? Open in Web Editor NEWA Clojure library for ring & compojure webapp.
A Clojure library for ring & compojure webapp.
util
config
inject(SPI)
core
使用事件机制?
MQ
方便开发环境
成熟
使用inject callback ?
完成Issue #12
整理、优化代码,
{:fp-name "sss"}
{:fp true}
fp-name 来自 handler name
{:fp "功能点"}
fp-perm 来自 {:perm }
支持
{:method :get :path "/about"}
{:get "/about"}
{:post "/about"}
{:method :get} ; :path (str "/" handler-name)
(defdynamic custom-error-response
{:status 403
:headers {"Content-Type" "text/html"}
:body "
(def app
(-> handler
(wrap-anti-forgery {:error-response custom-error-response})
(wrap-session)))
1 引入noir.validation
2 defhandler , validate meta
{:path "/"
:validate '(validate-rule (has-value? username) [:username "用户名输入错误"])
:on-validate-error (do )
}
3 flash
路由清晰化
1 融入 defhandler, with-routes
(defhandler xxx
{:perm "admin"
:auth true}
[])
(with-routes xxxx {:perm "admin" :auth true}
(defhandler )
)
2 friend依赖的功能可插拔
3 401 403 页面可定制
申请 cljwtang gamail 帐号?
用户:
admin:
user:
1 先当文档用
2 整合到测试流程
3 考虑基于它写validation库
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.