Static Sites in Ruby

32
Static Sites in Ruby Bryan Bibat @bry_bibat | bryanbibat.net slideshare.net/bryanbibat

description

 

Transcript of Static Sites in Ruby

Page 1: Static Sites in Ruby

Static Sites in Ruby

Bryan Bibat@bry_bibat | bryanbibat.net

slideshare.net/bryanbibat

Page 2: Static Sites in Ruby

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

Page 3: Static Sites in Ruby
Page 4: Static Sites in Ruby

It's 2014, not 2007, dammit!

Page 5: Static Sites in Ruby

Why Static Sites?

Page 6: Static Sites in Ruby

YAGNI

Page 7: Static Sites in Ruby

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

Page 8: Static Sites in Ruby

Performance

Page 9: Static Sites in Ruby

Security

Page 10: Static Sites in Ruby

your options...

Page 11: Static Sites in Ruby
Page 12: Static Sites in Ruby
Page 13: Static Sites in Ruby

Jekyll pros:

Page 14: Static Sites in Ruby

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

Page 15: Static Sites in Ruby

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

Page 16: Static Sites in Ruby
Page 17: Static Sites in Ruby

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

Page 18: Static Sites in Ruby

What's missing from Jekyll?

Page 19: Static Sites in Ruby
Page 20: Static Sites in Ruby

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

Page 21: Static Sites in Ruby

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

● bundle exec coffee break

Page 22: Static Sites in Ruby

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

● Asset Precompilation

Page 23: Static Sites in Ruby

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

● Asset Precompilation● LiveReload

Page 24: Static Sites in Ruby

Jekyll alternatives

Page 25: Static Sites in Ruby
Page 26: Static Sites in Ruby
Page 27: Static Sites in Ruby

Middleman Demo

Page 28: Static Sites in Ruby

Semi-Static Sitesvia Sinatra

Page 29: Static Sites in Ruby
Page 30: Static Sites in Ruby
Page 31: Static Sites in Ruby

sinatra-asset-pipeline demo

Page 32: Static Sites in Ruby

Thank you for listening!

Bryan Bibat@bry_bibat | bryanbibat.net

slideshare.net/bryanbibat