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

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.

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

~
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

Reply via email to