2009/12/4 jakemiles <jacob.miles / gmail.com>: > Hi. ¨Β§δ μιλε το υσθεςεδοξοτατιοξ ιξ αξ εςφιεχ ¨Ι§ν υσιξΝεςβ> but I believe this is an erb issue, not specific to merb). ¨Βος > example, I wrote a helper function that lets me use syntax like that > below. ¨Βοχεφεςτθισ εψανπμπςοδυγεσ παςσες εςςοςΊ > > can't find string "CODE" anywhere before EOF > > Any ideas how I can get this to work? ¨Β ποστεδ τθισ οξ τθνεςβ ηςου> as well, but I suspect it's really an erb issue: > > %= code "java", <<-CODE > > / create a panel using a GridBagLayout > ¨ΒΠαξεπαξεξεΚΠαξεμ ¨ξεχ ΗςιδΒαηΜαωουτ¨©©> > / three labels on the first row > ¨Βαξεμ®αδδ ¨ξεχ ΚΜαβεμ ¨ΆΟξεΆ©©> ¨Βαξεμ®αδδ ¨ξεχ ΚΜαβεμ ¨ΆΤχοΆ©©> ¨Βαξεμ®αδδ ¨ξεχ ΚΜαβεμ ¨ΆΤθςεεεεεΆ©©» > > ¨ΒΟΔ¥Ύ Make that CODE %> IOW, place the %> on the next line. > If I can get this to work it would be a really cool technique for > writing HTML helper functions. HTML helper functions in Java in an ERB template? How does this work? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/