[Nitro] in the skin.rb

Emmanuel Piperakis epiperak at softlab.ece.ntua.gr
Thu Sep 1 23:32:06 EDT 2005


is it possible to put code like this?

   def render
     %~
       #{doctype}
       <html>
         #{head}
         <body>
           <div id="page">
             #{header}
             #{mainnav}
             #{if @request != nil}
               #{if @request.path.chop == 'projects' then  secnav_projects 
end}
               #{if @request.path.chop == 'bgroups' then  secnav_bgroups 
end}
               #{if @request.path.chop == 'reports' then  secnav_reports 
end}
             #{end}
             <div class="main">
               #{content}
             </div>
             #{footer}
           </div>
           #{rendering_errors}
         </body>
       </html>
     ~
   end

I want depending on the fist navigation menu choice to display a second 
navigation menu... There must a be a smarter way to do this... Any help?

Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
  To teach is Primal, to Rule is Sin}



More information about the Nitro-general mailing list