hi,
I'm a complete newbie to the toolkit. I read the docs but I couldnt
resolve the following issue.
Can I use variables inside a toolkit-directive ? Most important this
would be when using the DBI-module.
example
[% FOREACH letter = DBI.query('SELECT * FROM letters offset [% offset %] limit [%
limit %]') %]
I want to specify offset and limit in this query. Is this possible ?
The above try results in:
[Wed Apr 02 14:28:51 2003] [error] 27453: ModPerl::Registry: file error - parse error:
test-dbi.tt line 8: unexpected token ('SELECT)
[% FOREACH letter = DBI.query('SELECT * FROM letters limit [% offset %]
btw: Dont know why the select-token is critized here. If I put numbers
instead of the inline-inline-variables everything works.
thnx,
peter
--
mag. peter pilsl
IT-Consulting
tel: +43-699-1-3574035
fax: +43-699-4-3574035
[EMAIL PROTECTED]
http://www.goldfisch.at
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates