Title: HAML Inheritance
Tags: ruby;inheritance;haml
Question: I am new to haml and want to do some inheritance, but I don't know whether it is possible with haml or not.
I have 2 separate haml files as below
=== file1.haml
This is haml1
=== file2.haml
This is haml2
*** I want to have a file.haml which inherit from file1.haml and file2.haml.
Is it possible to do it with haml?

Here is the accepted answer: you could turn file1.haml and file2.haml to partials (i.e. _file1.haml, _file2.haml) then use the render function in file.haml, for example in file.haml:
=render(:partial =&gt; "file1")
=render(:partial =&gt; "file2")

Here is another answer: In my implementation it can, and the behavior just like Textmate did, you create some bundle of snipt code and use when you need it to make it DRY

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2009:00:09/10/09', 'FavoriteCount': 2.0, 'PostTypeId': 1, 'Tags': '<ruby><inheritance><haml>', 'Title': 'HAML Inheritance', 'ViewCount': 1102, 'id': 1403239, 'user_AboutMe': 'I am a developer in Cambodia', 'user_AccountId': 21628.0, 'user_DisplayName': 'pang', 'user_Reputation': 3844.0, 'user_Views': 389.0, 'user_id': 52727.0}}