Edgewall Software

Ticket #320 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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

Attachments

Change History

Changed 4 years ago by cmlenz

  • status changed from new to assigned

Changed 4 years ago by cmlenz

  • status changed from assigned to closed
  • resolution set to fixed

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

Add/Change #320 (Using templates without loader)

Author


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


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.