code: function createSection (section, content, options) {
    options = options[section] || {}
    var c = content[section] || {}
    var o = options.contents
    var paginationOffset = Math.floor(options.paginationOffset) || 0
  
    if (typeof o !== 'object') o = {default: o}
  
    return {
      height: options.height,
      contents: phantom.callback(function (pageNum, numPages) {
        var html = o[pageNum] || c[pageNum]
  
        var pageNumFinal = pageNum + paginationOffset
        var numPagesFinal = numPages + paginationOffset
  
        if (pageNumFinal === 1 && !html) html = o.first || c.first
        if (numPagesFinal === numPages && !html) html = o.last || c.last
        return (html || o.default || c.default || '')
          .replace(/{{page}}/g, pageNumFinal)
          .replace(/{{pages}}/g, numPagesFinal) + content.styles
      })
    }
  }
docs: Creates page section --------------------