Edgewall Software

Opened 6 years ago

Closed 5 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:


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?.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by cmlenz

  • Status changed from new to assigned

comment:2 Changed 5 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.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.