Reputation: 17185
I am dabbling in some existing code and I am able to render some HAML like this:
.content_container
%strong{:class => "code", :id => "message"} Hello World!
But when the page loads, this HTML is rendered in an existing layout with a lot of the elements already defined.
I looked in config/settings/environment.rb which I was suggested to do by a HAML tutorial, but there was no mention of any other HAML code there.
Any idea how I can overwrite the header or find where the template is predefined?
Upvotes: 0
Views: 157
Reputation: 13877
It sounds like the template is being rendered with a layout. look in <app_root>/app/views/layouts/
for your missing HTML.
Upvotes: 1
Reputation: 160631
HAML likes files in the views
directory that have a haml
extension.
The docs say:
...all view files with the ".html.haml" extension will be compiled using Haml.
Upvotes: 0