If this file contained HTML, for example, it's much easier using a separate file for the content since you don't need to worry about escaping text. For example: Index of {path}

Index of {path}

Name Last modified Size Attributes Access

[PARENTDIR] Parent Directory