Is there any concept of extending a component and then inheriting from it to create further components.
I want to standardise the structure of my site by having Logo, menubar, toolbar etc in set places and then re-use that as a template for all my pages. Is that possible? If there is and if I make a change to the template then will it automatically update pages that have already been made using that template?
I understand what you are saying but I want to be able to use the same template from many different web pages in my site. Under your example I can create multiple instances of the template within ONE web page. What is the best method of doing this across multiple web pages.
Should I define my template layout in a separate file and then use :
in each file where I want to use the template?
Is this the best way of doing it or is there a better method.
You can create a separate js file, in which describe all logic of layout init and content attaching - after that just including those js file on any page will trigger the same layout initialization.
solution with server side includes can be used as well.
Basically there are many ways to implement such use-case, there is no single preferred solution.