I want to generate header and footer sections for my web app.
include header; header:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- My content here from the rest of the application -->
include footer; footer:
</body>
</html>
This way suits me well since i can simply include all i need by just including both files in every page. I feel that it's a bad practice though. Can I do it this way? How do I do it the right way?