Bolt is a static-site generator which facilitates code execution at site compile time, meaning you can pull records from a database, make HTTP requests or prompt the user for information or absolutely anything really
First lets install the Bolt gem:
$ sudo gem install bolt
Hopefully that worked, we can now move on to creating our first site:
$ bolt create my_first_site Created my_first_site/ Created my_first_site/pages Created my_first_site/views Created my_first_site/lib Created my_first_site/resources Created my_first_site/pages/home.rb Created my_first_site/config.yml Created my_first_site/views/application.haml Created my_first_site/views/home.haml
How exciting! Now lets build it:
$ bolt build my_first_site Removed ./out Created ./out Copied ./resources to out Parsed config ./config.yml Parsing page ./pages/home.rb Created out/index.html
Now open out/index.html in your web browser; how exciting. Seems like a lot of work for just that though, doesn't it? Well keep reading to learn about the true power of Bolt.