bamboo
[Index]
For package maintainers and hackage trustees
Bamboo is a port of Panda, but runs on top of Hack. It's an experimental project but quite portable.
The Bamboo codebase is a mess!!! But Haskell is so reliable that left me no incentive to do a rewrite.
So just use it, build middleware for it, or better yet write a new blog engine so everyone can benefit :)
By it's middleware nature, bamboo could be used with other hack middleware to achieve extensibility; Bamboo plugins are also middleware, so they can be used not only in bamboo, but any other CMS like web application.
bamboo can be customized in 3 ways:
Theme is separated from the bamboo's controller, connected through an interface and a state.
Though theme could be pure, it has the type of
This makes theme creation a relatively complex task, since a theme author basically has to do everything: from html construction to model manipulation. But since state is passed purely and return type is in IO, it also provides the ultimate safety and flexibility to theme construction, something unmatched by any main stream web frameworks. Integrating twitter? no problem, do them in IO.
Plugin is a proper hack middleware, so it works on an upper layer of the blog engine. It has all the power of a middleware, i.e. intercept request and response, and also the limitation, e.g. no idea of the underlying data structure of the app.
Plugin can be used to to do customization on the env object, or transformation to the response body. An example plugin is syntax highlighting, which could be done in the core, but would be more lightweight ( in terms of architecture design ) to be separated into a plugin.
You are hence not limited to use just bamboo-plugins to customize your blog, any hack-middleware which suite your need will do.
In db/config/theme, you can customize precisely which js / css files to use, this allows client side customization and also lightweight configuration without compilation.
郑板桥(1693~1765) 修竹幽兰图
<a href="http://github.com/nfjinjing/bamboo/raw/master/bamboo.jpg">
<img src="http://github.com/nfjinjing/bamboo/raw/master/bamboo-thumb.jpg" />
</a>