
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Bonsai is a static web site generator, it uses the best tools available for site construction and adheres to best web practices.
output
. Upload the contents of output
. Job done.children
, siblings
, ancestors
and navigation
.sitemap.xml
ready for search engines to spider your site.robots.txt
to be friendly to search engines.Install bonsai
gem install bonsai --source http://gemcutter.org
Run the generator
bonsai --plant [NAME]
Type bonsai --help
for any help with commands
Unlike other static generators, bonsai provides you with a built in web server. Once you've generated the necessary files (generator included) you can simply start developing. Type bonsai --cultivate
in the root of the generated site, a web server (rack, with thin) will start up.
It will also watch for when you save files - taking care of processing your sass files - kind of like autotest.
This is the cool part. Drop a bonsai generated site under pretty much anything. Apache, Nginx, Lighttpd - I don't care.
The generator will provide you with a .htaccess file that will turn on gzip/deflate compression for static assets as well as set long standing http caching timestamps and etags.
bonsai --repot
site-root/output
to your production server
rsync -ave ssh ./output/ tinytree.info:/var/www/tinytree.info
Bonsai runs under a number of Ruby implementations, MRI (1.8.7, 1.9.1, 1.9.2, 1.9.3), RBX (1.8 mode), JRuby (1.8 mode, 1.9 mode). Check travis to see the specifics.
Yes. I built (and content filled) a web site with around 160 pages in 5 days.
When I found something that didn't quite work, was too slow or perhaps not even possible I wrote a spec and implemented it later. Better software from real requirements. (I used every feature I implemented)
Copyright (c) 2010 Ben Schwarz. See LICENSE for details.
FAQs
Unknown package
We found that bonsai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.