From: evan_leonard@... (Evan Leonard) Date: 2002-03-02T10:47:32+09:00 Subject: Re: including files in eruby 520079130762-0001@t-online.de (Michael Neumann) wrote in message news:<20020220123316.GA1224@michael.neumann.all>... > Martin Maciaszek wrote: > > I'm using eruby on some of my web pages. Now they became big and > > unwieldy. I would like to extract some parts into extra files and > > include those files in several pages. How can I achieve this? > > You can do this with: > > <% ERuby.import "filename.rhtml" %> I've been running into a similar problem and tried to use ERuby.import, however when I use that code snippet: > <% ERuby.import "filename.rhtml" %> I get a method not found error. Any ideas? I have eruby running well and use .rhtml files all the time. I've just never tried to call a method direction from the ERuby module. I know its there however ERuby.type returns "Module" i'm stuck. thanks Evan