﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
421,TemplateLoader template cache does not properly namespace directories,griffin@…,cmlenz,"given the following filesystem setup:
  dir/
    |-- subdir-1/
    |   |-- base.gst
    |   `-- target-1.gst
    `-- subdir-2/
        |-- base.gst
        `-- target-2.gst

where both ""target-1.gst"" and ""target-2.gst"" have the following:

  <xi:include href=""base.gst""/>

then a TemplateLoader class cannot be re-used to compile both ""target-1.gst"" and ""target-2.gst"", because the content of the first ""base.gst"" will be cached and used for the second include as well.

the solution is to first evaluate the absolute path of a template before using that as the cache key.

the work-around is to simply create a new TemplateLoader, but this is obviously less desirable for performance reasons.

cheers,
griffin",defect,new,major,,Template processing,0.5.1,,,
