# Re: eRB \<%=

**URL:** <https://www.ruby-forum.com/t/re-erb/68607>\
**Category:** Ruby\
**Created:** [September 13, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/re-erb/68607 "2006-09-13T21:56:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [September 13, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/re-erb/68607/1 "2006-09-13T21:56:22Z")

</div>

From: Jonas H. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]

> whats eRBs \<%= doing in contrast to \<%?

My Template

\<%  
place = “World”  
\_erbout \<\< “Hello”  
%\> \<%=  
place  
%\>

\<%

# Your ruby code here. The ‘return value’ of

# the last statement does nothing

“NOT IN THE OUTPUT”  
%\>

When an equals sign is involved, the ‘return value’  
of the last statement is turned into a string  
and inserted into the output.  
\<%=“THIS WILL BE IN THE OUTPUT”%\>
