From: Phillip Gawlowski Date: 2010-11-25T18:54:33+09:00 Subject: Re: Dynamically creating webpages via Ruby On Thu, Nov 25, 2010 at 9:37 AM, Phil H. wrote: > > I could write everything before and after the body outside of the loop > since it didn't require dynamic content I was extracting from my input > urls.  That way I wasn't re-writing a bunch of static HTML every > iteration of the loop... Hopefully that makes sense. Well, if your JavaScript is a function that takes arguments, you could write out something like this: [url1, url2].each do |url| "