From: Nathan Standiford Date: 2012-06-21T01:44:06+09:00 Subject: Re: Does ERB have recursive template support? I have an XML file which has an integer weight for the template and template file information. Here is how I loaded the template: I used m = Module.new.eval(File.read(path).to_s.strip) for the load. I used m.const_get("#{module}").const_get(#{class_name}") for dereferencing I then called two methods, which I implemented in all the classes, which retrieves a hash and a template string. I threw all of this into another class, which had other info. -----Original Message----- From: Todd Wei [mailto:lists@ruby-forum.com] Sent: Tuesday, June 19, 2012 6:26 PM To: ruby-talk ML Subject: Re: Does ERB have recursive template support? Nathan Standiford wrote in post #1065169: > I planned on dynamically loading many different ruby source files > containing an ERB template and it's template variables. Nathan, what does this mean? Could you give me more details? Thanks! -- Posted via http://www.ruby-forum.com/.