Reputation: 1969
I've recently had a couple of projects that required delivering standard HTML files, each of which has a lot of common markup in the header and footer of the page.
I use SASS for CSS and love that I can include one .scss file into another, and still end up with a single .css file.
I'm hopeful that there is a similar compiler for HTML, but I haven't been able to find one.
I though HAML might be the ticket, but it doesn't seem to have include functionality.
Thanks.
Upvotes: 4
Views: 1262
Reputation: 2147
The first thing that comes to mind is Jade:
https://github.com/visionmedia/jade
Simplifies your HTML and allows compiled includes.
Upvotes: 1