     write_content = @compress(write_content) if options.compress
     fs.writeFileSync @export_path, write_content
     global.options.debug.log "compiled #{path.basename(@file)}"
+    console.log options.locals.site
 
   compress: (write_content) ->
     require('../utils/compressor')(write_content, @target_extension)

    for key, value of extra
      options.locals[key] = value

    if @template_name and extra? and extra.yield?
      options.locals.site[@template_name].content = extra.yield

    return options.locals


    front_matter_string = @file_contents.match(yaml_matcher)

    if front_matter_string
      # set up variables
      options.locals.site = []
      @dynamic_locals = {}

      front_matter = js_yaml.safeLoad(front_matter_string[1], { filename: @file })
      @dynamic_locals[k] = v for k,v of front_matter
  
      @layout = front_matter.layout if _.pluck(front_matter, 'layout')
      @file_contents = @file_contents.replace yaml_matcher, ''

