Add content_for and yield_content helpers <3. Thanks @RX14

This commit is contained in:
Sdogruyol 2016-07-09 19:54:35 +03:00
parent 73d6123f3d
commit 21b194a901
3 changed files with 17 additions and 23 deletions

View file

@ -1,6 +1,5 @@
Hello <%= name %>
<% content_for "custom" do |io| %>
io << "<h1> Hello from otherside </h1>"
io
<% content_for "custom" do %>
<h1>Hello from otherside</h1>
<% end %>