Hello guys, I am starting to think that i need a templating language (just like PHP''s Smarty and JSP''s Expression Language) for simple value outputs in a page without resorting to <%= %>. I''m working on a I18N heavy application and we have a lot of places where we open a scriptlet just to show a translated message and i''m starting to think that it would be possible to change this for a simpler representation, someting like ${t:txt.users.top_by_points}. I want to keep the <%= %> functionality (so it''s more like JSP than Smarty), but i would like to add the other as an option, anyone has any idea about where i should start looking to get this to work? - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maurico - On 2-Feb-09, at 1:34 PM, Maurício Linhares wrote:> > Hello guys, > > I am starting to think that i need a templating language (just like > PHP''s Smarty and JSP''s Expression Language) for simple value outputs > in a page without resorting to <%= %>. > > I''m working on a I18N heavy application and we have a lot of places > where we open a scriptlet just to show a translated message and i''m > starting to think that it would be possible to change this for a > simpler representation, someting like ${t:txt.users.top_by_points}. > > I want to keep the <%= %> functionality (so it''s more like JSP than > Smarty), but i would like to add the other as an option, anyone has > any idea about where i should start looking to get this to work?Maybe Liquid would work for you. http://wiki.github.com/tobi/liquid/getting-liquid-to-work-in-rails Jodi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Liquid doesn''t accept the scriptlet ( <%= %> ) syntax, but thanks anyway. - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Mon, Feb 2, 2009 at 3:56 PM, Jodi Showers <jodi-BOB1p6JRLoAV+D8aMU/kSg@public.gmane.org> wrote:> > Maurico - > > On 2-Feb-09, at 1:34 PM, Maurício Linhares wrote: > >> >> Hello guys, >> >> I am starting to think that i need a templating language (just like >> PHP''s Smarty and JSP''s Expression Language) for simple value outputs >> in a page without resorting to <%= %>. >> >> I''m working on a I18N heavy application and we have a lot of places >> where we open a scriptlet just to show a translated message and i''m >> starting to think that it would be possible to change this for a >> simpler representation, someting like ${t:txt.users.top_by_points}. >> >> I want to keep the <%= %> functionality (so it''s more like JSP than >> Smarty), but i would like to add the other as an option, anyone has >> any idea about where i should start looking to get this to work? > > Maybe Liquid would work for you. > > http://wiki.github.com/tobi/liquid/getting-liquid-to-work-in-rails > > Jodi > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---