[Grok-dev] How are viewlets better than macros?

Sebastian Ware sebastian at urbantalk.se
Thu May 8 02:53:39 EDT 2008

7 maj 2008 kl. 13.31 skrev Lennart Regebro:

> On Mon, May 5, 2008 at 5:54 PM, Sebastian Ware  
> <sebastian at urbantalk.se> wrote:
>> On the Grok site viewlets are explained to have "...basically the  
>> same
>> purpose as a macro, but is more clean, powerful and flexible." Only  
>> the text
>> fails to explain how. The example shown doesn't show much of this  
>> power or
>> flexibility as far as I can tell. Where is the real benefit? What  
>> am I
>> missing?
> Macros rely on global variables, but there is no way to see which
> variables they rely on, except reading the code very carefully. Macros
> are language dependent. Macros are difficult to override if you have
> more than one macro in a template.
> In short: Macros are evil. Do not use.

gork.Viewlets are useless (for me who doesn't understand how they  
work) due to the current state of their documentation, so this puts us  
in a situation where I get to choose between useless and evil... I  
will have to dance with the devil for a little longer ;)

Mvh Sebastian

More information about the Grok-dev mailing list