 # standard doesn't support easy class injection to a <pre> element.
 .addTemplate
   ext: ['markdown', 'md']
-  fn: (options) -> 
+  fn: (options) ->
     marked options.source
 
-.addRoute '/', (req, res) -> 
-  res.render 'page', 
+.addRoute '/', (req, res) ->
+  res.render 'page',
     posts: poet.helpers.getPosts 0, 3
     page: 1
 

    req.on 'end', next

# less middleware
app.use less __dirname, 
  dest:path.join(__dirname, 'public')
  force:true # WARN: only for debug
  preprocess: path: (p) -> p.replace /stylesheets/, 'less'

  '<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

