[Nitro] Dispaying ruby vars in Nitro templates

George Moschovitis george.moschovitis at gmail.com
Fri Dec 30 07:02:30 EST 2005

have a look here:



On 12/26/05, Alexandre Gravem <vikingtux at gmail.com> wrote:
> I am not sure it is a Nitro question, if I am asking in the wrong place
> please forgive me!
>  To learn Nitro I decided to set up a multi-user blog system based on the
> blog example provided. When checking on templates/view.xhtml I notice 3 ways
> to display the value of ruby vars: #{var}, #(var) and #|var| ...
>  Firstly I thought the three worked same way, but when displaying text
> marked up with Textile the #{var} 'operator' showed the raw text while the
> #|var| transform it to HTML.
>  My questions are:
>  1) How to use each correctly
>  2) There are others 'operators' like those?
>  Again, I am sorry if I am asking in the wrong place!
>  Gravem
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general


More information about the Nitro-general mailing list