def render(context, locals)
      @context = context
      @pathname = context.pathname
      @directory = File.dirname(@pathname)

      @header  = data[HEADER_PATTERN, 0] || ""
      @body    = $' || data
      # Ensure body ends in a new line
      @body += "\n" if @body != "" && @body !~ /\n\Z/m

      @included_pathnames = []

      @result = ""
      @result.force_encoding(body.encoding)

      @has_written_body = false

      process_directives
      process_source

      @result
    end
def render(context, locals)
      @context = context
      @pathname = context.pathname
      @directory = File.dirname(@pathname)

      @header  = data[HEADER_PATTERN, 0] || ""
      @body    = $' || data
      # Ensure body ends in a new line
      @body += "\n" if @body != "" && @body !~ /\n\Z/m

      @included_pathnames = []

      @result = ""
      @result.force_encoding(body.encoding)

      @has_written_body = false

      process_directives
      process_source

      @result
    end
Implement `render` so that it uses our own header pattern.