Static Sites in Ruby

Post on 05-Dec-2014

126 views 4 download

description

 

Transcript of Static Sites in Ruby

Static Sites in Ruby

Bryan Bibat@bry_bibat | bryanbibat.net

slideshare.net/bryanbibat

Say you want to build asimple site using Ruby...

It's 2014, not 2007, dammit!

Why Static Sites?

YAGNI

Third-Party APIs(e.g. Disqus, Gist, Google Analytics)

Performance

Security

your options...

Jekyll pros:

Jekyll pros:● well-known, standard for site generators

Jekyll pros:● well-known, standard for site generators● many plugins/frameworks (e.g. Octopress)

Jekyll pros:● well-known, standard for site generators● many plugins/frameworks (e.g. Octopress)● automatic Github Pages build

What's missing from Jekyll?

What's missing from Jekyll (out-of-the-box):

What's missing from Jekyll (out-of-the-box):

● bundle exec coffee break

What's missing from Jekyll (out-of-the-box):

● Asset Precompilation

What's missing from Jekyll (out-of-the-box):

● Asset Precompilation● LiveReload

Jekyll alternatives

Middleman Demo

Semi-Static Sitesvia Sinatra

sinatra-asset-pipeline demo

Thank you for listening!

Bryan Bibat@bry_bibat | bryanbibat.net

slideshare.net/bryanbibat