[Nitro] Patch review

George Moschovitis george.moschovitis at gmail.com
Thu Jun 28 15:27:25 EDT 2007


>
> > A nice example might be to show how one could load templates from one or
> > another directory to serve up localized content.  Perhaps read the
> > sub-domain from the request URL and use that to pull templates in a a
> > particular language:
> >
> >     gr.foo.com -> Template.root = localized/gr/template
>
>
This is quite easy to implement, with a compile filter that does before the
template filter.

btw, have a look at a similar localization techique:

raw/view/localized.rb

use like this

class MyController
  is Localized
  ..
end

-g.



-- 
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070628/ab2f1ede/attachment.html 


More information about the Nitro-general mailing list