Intro to DocPad

Static Site Generator

By Rob Loach / @robloach

November 27th, 2013 - openBar() Toronto

Rob Loach

robloach.net / @RobLoach / GitHub

Engineer at Myplanet Digital

Content Management Systems

Awesome, but Problematic

  • Can be slow
  • Steep learning curve
  • Content stuck in database
  • Adding functionality can be complex
  • Theming can be an issue
  • Sometimes not the right tool
  • Become a CMS Developer rather than Web Developer
  • etc

Static Site Generators

  • Less complexity
  • The whole site is in the code base
  • Complete control over HTML and CSS
  • Focus is on content, not data
  • Performance
  • etc

Jekyll: RubyHyde: PythonSculpin: PHP

DocPad: Node

DocPad

  • Rendering system
  • Helpers
  • Importers
  • Deployers
  • Usage

Rendering system

Multiple template engines

index.html.jade.eco.handlebars.php

style.css.styl.less.scss

script.js.coffee.eco

Helpers

Enhanced functionality

Importers

Deployers

$ npm install docpad -g
$ docpad init
$ docpad skeleton
$ docpad run

Example Time!

Just look at this presentation's slides

robloach.github.io/slides-docpad

Thank You

Now go use DocPad