       if @template == 'none'
         # dont render
         return callback null, null
-      
+
       async.waterfall [
         (callback) =>
           template = templates[@template]

            contents: contents
            _: _
            moment: require 'moment'
          _.extend ctx, locals, assets
          template.render ctx, callback
      ], callback

  assets =
    css:
      all: '<link rel="text/css" href="test.css" />'
    js:
      all: '<script src="test.js"></script>'

  wintersmith.registerContentPlugin 'pages', '**/*.json', KelvinJsonPage
  #wintersmith.registerContentPlugin 'pages', '**/*.*(markdown|mkd|md)', KelvinMarkdownPage
  wintersmith.registerContentPlugin 'assets', 'assets.json', KelvinAssets
  wintersmith.registerTemplatePlugin '**/*.*(mustache|hogan)', KelvinTemplate
  callback()

module.exports = (wintersmith, callback) ->
  
  isProd = false
  
  preprocessPackage = (type, package) ->
    for name, files of package
