![]() |
Template Inheritance Using JavaScript
Hi,
I saw in Django framework , in there we can inherit the templates from common base.html. In base.html all the common things are defined , And in other templates content of the pages are changed . I just want define all common div's like header , footet and nav in base.html and extend this base.html in other pages with different content in page . Thank You |
You write your main style sheet as an external file, lets say we name it basestyle.css and place it in the css folder. Now we can call it for every page we want to use it on like this:
Code:
<link href="http://www.somesite.org/css/basestyle.css" rel="stylesheet" type="text/css" />This has nothing to do with javascript. It's just normal HTML/CSS. |
| All times are GMT +1. The time now is 03:18 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.