24 May '15, 6pm

A Dynamic Site As Fast As A Static Generated One with Passenger 5:

A Dynamic Site As Fast As A Static Generated One with Passenger 5:

If you ask what's the best way to do a fast content site, many people will point you to Jekyll or a similar tool. The concept is simple: nothing will be faster than a statically generated website. But writing a complete website statically is not viable because you will be repeating HTML code for headers, footers, sidebars, and more across all pages. But current tools such as Markdown, SASS, Sprockets (or Gulp/Grunt tasks if you're using a Javascript clone of Jekyll) will make it a whole lot easier to properly structure, organize and separate concerns on what are reusable snippets and what is just content. Then it will "compile" the content and the snippets into complete HTML pages ready to just transfer to any web server. Because it's already static files, the web server doesn't need to reverse proxy to an application server or have any other kind of dynamic processing, ju...

Full article: http://www.akitaonrails.com/2015/05/20/dynamic-site-as-fa...

Tweets

Learn How to Create Static Pages in a Rails App...

blog.teamtreehouse.com 02 Jun '15, 5pm

These are pseudo static pages though. Most of all, they don’t take any advantage of a static page: hit rails router, contr...