From: Larry White Date: 2005-12-10T11:33:28+09:00 Subject: Re: Customizing erb's recognized tags I need to read in a template file and apply replacements in two steps - so i can't use the same tags for each pass. I don't think string interpolation works on strings read from files which are single quoted by default. If there's a way around that it might be ok. On 12/9/05, James Edward Gray II wrote: > On Dec 9, 2005, at 7:46 PM, Larry White wrote: > > > Hi > > > > Does anyone know if it's possible to change the tags that erb > > recognizes so that for instance, I can have it replace on #{} instead > > of <%= %> ? > > You mean normal String interpolation? > > >> str = <<'END' > I have a #{2 - 1} line string here! > END > => "I have a \#{2 - 1} line string here!\n" > >> eval %Q{"#{str}"} > => "I have a 1 line string here!\n" > > James Edward Gray II > > >