<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">George,<br><br>Did you decide on this? Dod you do any work on this? Did you try<br>making it an instatiable class?
<br></blockquote></div><br>Nope, I haven't decided on this. I still believe that using globals is valid for this case, but I am sure that a lot of people will go mad if they see the $ symbol. It is amusing that people consider this unacceptable:
<br><br>$conf_template_root_dir = '...'<br><br>but this acceptable:<br><br>Conf["Template.root_dir"] = '...'<br>or<br>Conf[:Template][:root_dir] = '...' <--- this is curently used, Template.root_dir
is syntax sugar for Conf[:Template][:root_dir] atm.<br><br>as they are exactly the same thing...<br><br>I think that global variables are the natural choice for *global* settings, but since everyone else disagrees I am probably wrong so I will leave the configuration system as it is for the moment. I will just try to add some kind of syntactic sugar for Conf[:Template][:root_dir] initialization. I am thinking something along the lines:
<br><br>Configuration.setup do<br> Template.root_dir = ...<br> Og.create_tables = ...<br>end<br><br>instead of<br><br>Configuration.Template.root_dir = ...<br>Configuration.Og.create_tables = ...<br><br>Perhaps you can suggest something better? In any case I need to move the final solution to facets. (still trying to get rid of the glue gem).
<br>As you are the Ruby guru here perhaps you could come up with a better solution.<br><br><br>regards,<br>George.<br><br><br>-- <br><a href="http://blog.gmosx.com">http://blog.gmosx.com</a><br><a href="http://cull.gr">http://cull.gr
</a><br><a href="http://www.joy.gr">http://www.joy.gr</a><br><a href="http://nitroproject.org">http://nitroproject.org</a>