%def script(): script from {{g.t}} with number {{nr}} %end %scripts['script'+str(nr)]=script # without nr it is overridden