[Cheetahtemplate-discuss] #include at cheetah command-line compile time, not in rendering time
Brought to you by:
rtyler,
tavis_rudd
From: Jung G. L. <ar...@gm...> - 2006-07-06 04:08:12
|
I am using cheetah to make a html document, that consists of several sections, such as an user login info box, a sidebar, a result message box, so on. For development purpose, I want to divide it into several parts, and put them into several files for ease of modification. I found that when I compile a cheetah template into .py file, #include 'text.file' does not actually include the 'text.file', but just make a reference to the text.file so that the file is read during rendering time. I think there may be a loss of time by compiling the including file for every rendering time, and some problems may occur because of the include file search path. Is there any cheetah syntax that includes any text file in the template, so that generated .py file contains the content of the text file, not just a reference to the text file? |