[Nitro] in the skin.rb

Emmanuel Piperakis epiperak at softlab.ece.ntua.gr
Fri Sep 2 02:52:41 EDT 2005


Just found the problem...
I had to escape # to get request!
\#{request.path.chop} in the skin.rb gives me what I was searching for...


> 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}
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>

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