Dan G wrote:
> I ran into a huge roadblock today, I found out #include doesn't behave quite 
> like SNIPPET (ignoring the per-system/profile stuff). If there are #defs 
> inside the included file, they do not carry over into the including file. For 
> instance:
>
> ------------my_template------------------
> #include 'my_include'
>
> $my_func('foo')
> ----------------------------------------------
>
> -----------my_include--------------------
> #def my_func($a)
> ${a}bar
> #end def
> ----------------------------------------------
>   

There is a #set global that works for variables, that /may/ work for 
functions.

#set global foo = 2

They also have a mailing list here: 
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

The other trick is to do something like we do for CobblerWeb where we 
compile a master template that all Cheetah templates
we use have access to. I'm not sure if that works, though it might. 
(#extends)

http://www.cheetahtemplate.org/docs/users_guide_html_multipage/inheritanceEtc.extends.html



> does not behave as expected. Changing "#include" to "SNIPPET::" yields the 
> expected outcome.
>
> Lame.
>
> There is another problem I'm coming across that might actually be a bug in 
> cheetah, so I probably will not have the other 'builtins' finished for some 
> time.
>
>   

Yeah, definitely ask on the Cheetah ML. Or hop on IRC if you want, I 
wouldn't mind taking a look as well and may be some help. Maybe :)



> I'll let you know as soon as I figure something out.
>
>   

Yep, no problem!

--Michael



> ~
> Dan
>
>
> ----------------------------------------
>   
>> Date: Wed, 30 Jul 2008 11:02:37 -0400
>> From: [EMAIL PROTECTED]
>> To: [email protected]
>> Subject: Re: Snippet with generalized functions
>>
>> Aaron Lippold wrote:
>>     
>>> Hay Mike,
>>>
>>> Dan is working with me on the generalization stuff for my project. I
>>> still have to set him up with a cobbler server so he has been doing it
>>> mostly on a Ubuntu box. I will get him going tomorrow with that. Where
>>> is the link to the patch process again?
>>>
>>> Thanks,
>>>
>>> Aaron
>>>   
>>>       
>> https://fedorahosted.org/cobbler/wiki/PatchProcess
>>
>>
>>     
> _________________________________________________________________
> Keep your kids safer online with Windows Live Family Safety.
> http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to