jQuery mobile: Code repetition

jQuery mobile: Code repetition

Hello,  

I am making pages using jQuery mobile. But I am stuck with the HTML code repetition in my pages.

I have created panel in every pages [data-role=page]. Panel content is same for every page. So how can I create a single panel and that can be used by other pages also?

OR

Is there any Master pages concept as in (asp.net) so I can make common functionality for header and footer for every page?

Hoping to get quick response.

Thanks!