Harald Joerg wrote:

'component' is, like e.g. 'template', a special variable to TT, and it
happens to have an element called "name". You can't override this.


That's what I recognized too after I send my question by testing ...

There's a section "Special Variables" in the TT manual (Section
"Variables") listing all of them.

You get "D:/temp"    because that's the value of dir.documentation.
You get "/"          becaues that's a constant.
You get "input text" because that's what the builtin variable
                    component.name holds this value if the template
                    is a scalar ref.

One easy solution would be to just rename 'component' to 'comp' in
your code.


Thats what I did intuitively - but now I've got a reason why my problem occurs ...

Thanks for your answers

Johannes


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to