[Nitro] in the skin.rb

George Moschovitis george.moschovitis at gmail.com
Fri Sep 2 05:23:15 EDT 2005


Exactly :-)

Elements are evaluated at compile time (so there is practicaly no
performance penalty). This in an example of Nitro's scalable design.
Constant time algorithms are used whenever possible.

regards,
George.

On 9/2/05, Emmanuel Piperakis <epiperak at softlab.ece.ntua.gr> wrote:
> 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}
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
> 


-- 
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list