Run this tests using node

        $ node node.js
        

Debug this tests using node and Chromium

        $ node-debug node.js
        

i18n:domain

Not needed!

metal:defineMacro and metal:useMacro

Before use macro

Macro goes here

In the middle of 2 macros

Macro goes here

After use macro

Copyright 2009, Foo, Bar, and Associates Inc.

tal:attributes

  1. Link 1: a link

tal:condition

  1. Condition true 1: yes!
  2. Condition true 2: a name
  3. Condition false 1: no!
  4. Condition false 2: a name

tal:content

  1. a text

tal:define

  1. integer1 = 1 = an integer
  2. float1 = 1.5 = a float
  3. text1 = this is a text = a text
  4. text2 = this is a text too = a text

tal:omit-tag

  1. (should omit)
  2. not: lt: 1 0 (should omit)
  3. lt: 1 0 (should not omit)

tal:on-error

  1. number1 = 1 = must be 1
  2. throwError() = Error! = Error!

tal:repeat

  1. Iterating element 10/20/30
  1. Iterating element 7/5/3/1

tal:replace

  1. should be replaced