• finding things...
    • t.getById('something)
    • t.getByName('something')

replace things...

  • n.replace(value,tag,**attributes)
    • supplied argument is used
    • all arguments are optional
    • True means “leave as is”
    • False means “remove it”
    • value can be another node

repeat things...

  • n.repeat(value,tag,**attributes)

    • return the newly inserted node
    • takes the same parameters as replace
      . for convenience

remove things...

  • n.remove()
    • remove the node from the current twiddler

what if I want to keep it all in one place?

  • code blocks
    • one per template
    • executed on render
    • executed when explicitly requested

what about macros?

  • t.clone()
    • will be cheap
    • allows partial rendering

.... samples skipped ....


  • Positives

    • works with real html
    • no new languages
    • simple as possible
  • Negatives

    • verbose
    • not battle-proven
    • slow?
changed November 13, 2007