                     sb.AppendLine();
                        continue;
                    }
                }
                else sb.AppendLine(line);
            }
        }
        footer = sb.ToString();

        if (string.IsNullOrEmpty(header) || string.IsNullOrEmpty(footer))
            throw new Exception($&quot;Parsing {indexPath} failed, missing &lt;!--PAGE--&gt;...&lt;!--/PAGE--&gt; markers&quot;);

        return new PageTemplate(header, footer);
    }

    public string Render(