Created
June 14, 2011 13:47
-
-
Save eagsalazar/1024928 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index.html.erb: | |
--------------------------------------------------------- | |
<div>STUFF WE SHOULDNT SEE</div> | |
<% foo(:head, @hsh) do %> | |
<script type="text/javascript" src="/js/work.js"></script> | |
<% end %> | |
someruby.rb | |
--------------------------------------------------------- | |
def foo name, hsh | |
yield | |
end | |
result: | |
-------------------------------------------------------- | |
<div>STUFF WE SHOULDNT SEE</div> | |
<script type="text/javascript" src="/js/work.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment