Mark,

Thanks for the reply. This

[% SET curriculum = bookmark.curriculum.name %]
[% path = PROCESS "courses/${curriculum}/congratulations.html" %]
[% lcpath = FILTER lower; path; END %]
[% PROCESS lcpath %]

 outputs:

file error - courses/Wetlands/congratulations.html: not found

Same capital W problem.  I knocked my head against this til 12:30 last
night and I am back on it as of 6:30.  I don't want to not use my
Class::DBI objects here but I am leaning towards giving up and kludgily
sending a lowercased string of curriculum name along with my bookmark
object.

Thanks again for reply!

David

>-----Original Message-----
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Mills
><snip>
>
>Try this:
>
>[% path = FILTER lower; path; END %]
>
>--mark
>
>D. Martin wrote:
>
>> Hi all,
>> 
>> I found this thread
>>
http://template-toolkit.org/pipermail/templates/2004-January/005496.html
>> 
>> 
>> And made this in emulation:
>> 
>> [% SET curriculum = bookmark.curriculum.name %]
>> [% IF curriculum %]
>>      [% path = PROCESS "courses/${curriculum}/congratulations.html"
>> %]
>>      
>>      [% lcpath = FILTER lower %] 
>>              path 
>>      [% END %]
>> 
>>      [% PROCESS lcpath %]
>> 
>> [% ELSE %]
>>      No curriculum!
>> [% END %]
>> 
>> The output of this is this error:
>> 
>> file error - courses/Wetlands/congratulations.html: not found
>> 
>> See the lovely capital W?  Arrrrgh.
>> 
>> Please advise.
>> 
>> David
>> 
>> All you have to do is decide
>> what to do with the time that
>> is given to you.
>>                       ~ GTG
>> 
>> 
>> 
>> 
>> _______________________________________________
>> templates mailing list
>> [EMAIL PROTECTED]
>> http://lists.template-toolkit.org/mailman/listinfo/templates



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

Reply via email to