You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: front_matter_template.rb
    path of file: ./repos/kojo/lib/kojo
    
    the code of the file until where you have to start completion: module Kojo
  # The FrontMatterTemplate class handles a single template file, that
  # contains a YAML fron
    
    def read_file(file)
      raise Kojo::NotFoundError, "File not found: #{file}" unless File.exist? file

      config = YAML.load_file file
      content = File.read(file)[/^---\s*$\n(.*)/m, 1]

      [config, content]
    end