Edgewall Software

Opened 15 years ago

Closed 15 years ago

#320 closed defect (fixed)

Using templates without loader

Reported by: erik@… Owned by: cmlenz
Priority: minor Milestone: 0.6
Component: Template processing Version: 0.5.1
Keywords: Cc:

Description

I ran into problems with the include directive when creating NewTextTemplate? objects directly rather than using TemplateLoader?. It would quietly render it as an empty string, no exception or anything. Doing a little trouble-shooting in base.Template._prepare(), self.loader is None and fallback is an empty list. Hence, nothing. After looking at that code, it makes me think that a TemplateLoader? is required.

I am new to Genshi, so I'm not sure if this is a bug in the include directive handling or if using TemplateLoader? is required. Ideally, I prefer to not be forced to use TemplateLoader?.

Change History (2)

comment:1 Changed 15 years ago by cmlenz

  • Status changed from new to assigned

comment:2 Changed 15 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from assigned to closed

Implemented in [1099]: templates get an implicit loader based on their filepath/filename, or the current directory as a fallback.

Note: See TracTickets for help on using tickets.