printing in middle of an erb file

Hello,
I'm having a problem to output things in the right order with erb1.9
and lighttpd . I don't know if it's the normal behaviour of erb but
this is how it works for me:

Content of my ERB file: test{<%= 1 %>2<% puts 3 %>}

On my web browser I get this output:
3
test{12}

puts or print comes before any text.. Do you know wich function instead
of
puts would print test{123}?

Thanks wery much

Hello,
I'm having a problem to output things in the right order with erb1.9
and lighttpd . I don't know if it's the normal behaviour of erb but
this is how it works for me:

Content of my ERB file: test{<%= 1 %>2<% puts 3 %>}

On my web browser I get this output:
3
test{12}

puts or print comes before any text.. Do you know wich function instead

Don't use puts in erb files - you're lucky it shows up in your browser
at all

Fred