Hi, How can I translate the following logic into Kid? The idea is that all markup for displaying breadcrumbs (for example) is defined in the master template, and the child-templates only add pieces to it, without knowing about each other.
In Python I'd do it like this: class Master: def __init__(self): self.crumbs = ['home'] def render_breadcrumbs(self): return ' \ '.join(['<a href="#">%s</a>' % crumb for crumb in self.crumbs]) class Page(Master): def __init__(self): Master.__init__(self) self.crumbs += ['page'] class Item(Page): def __init__(self): Page.__init__(self) self.crumbs += ['item'] t = Item() print t.render_breadcrumbs() Appreciate any hints. -- Ksenia