Le samedi 27 janvier 2007 08:26, Sergey Martynoff a écrit : > > I would like to use SWITCH and CASE to choose what I output > > to a page I'm > > creating using a template. > > > > Following the manual, I have written the following: > > > > [% SWITCH STAR_DETAIL.instrument %] > > [% CASE NONE %] Hi Sergey > I guess you want [% CASE 'NONE' %] and [% CASE 'READ' %]. If this wont > work, plase show us perl code where you prepare variables for 'process' > method. This is exaclty it! It works perfectly, the test works, and output depending on the content of the variable works.
Thanks a lot. Éric. -- Un clavier azerty en vaut deux --------------------------------------------------------------- Éric Depagne [EMAIL PROTECTED] European Southern Observatory Alonso de Cordova 3107 Santiago 19, Chile --------------------------------------------------------------- _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
