 app = express()
 app.set 'port',         process.env.PORT or 3000
 app.set 'views',        __dirname + '/views'
-app.set 'view engine',  'jade' 
+app.set 'view engine',  'jade'
 
 app.set 'github name',            'chester1000'
 app.set 'github repo url',        'https://api.github.com/repos/%s'

# standard doesn't support easy class injection to a <pre> element.
.addTemplate
  ext: ['markdown', 'md']
  fn: (options) -> 
    marked options.source

.addRoute '/', (req, res) -> 
  res.render 'page', 
    posts: poet.helpers.getPosts 0, 3
    page: 1


  '<center class="resource">' + (

    if yt? then app.get('youtube embed url').replace "%s", yt[1]
    else
      href = "/post-content/" + href unless href.startsWithAny [ "http", "/images" ]
      new Renderer().image href, title, text

