Create a helper or something for haml with ruby on rails
Posted
by Lisinge
on Stack Overflow
See other posts from Stack Overflow
or by Lisinge
Published on 2010-03-26T13:46:18Z
Indexed on
2010/03/26
14:13 UTC
Read the original article
Hit count: 405
Hello, i am using haml with my rails application and i have a question how the easiest way to insert this haml code into a html file:
<div clas="holder">
<div class=top"></div>
<div class="content">
Content into the div goes here
</div>
<div class="bottom"></div>
</div>
And i want to use it in my haml document like this:
%html
%head
%body
Maybee some content here.
%content_box #I want to get the code i wrote inserted here
Content that goes in the content_box like news or stuff
%body
I hope you understand what i want to acomplish here. And if there is a easier way to do it please answer how. Thanks!
© Stack Overflow or respective owner