One of my main challenges right now is figuring out an elegant way to create an HTML 'module' in one file that will deploy to all of my websites (i.e. copyright language, site navigation, EEO statement, etc.) But I'm aware that HTML import is still being developed and is only available to those who opt-in on Chrome 36 or later.
Is there a solution using JavaScript where I can create a string that contains HTML and deploy it as an organic part of my pages? And what about doing the same for CSS in a way that will be browser compatible (http://webdesign.about.com/cs/css/qt/tipcssatimport.htm)?
Here's sample code:
<'ul>
<'li><'a href="#">Learn to Code<'/a><'/li>
<'li><'a href="#">Current Projects<'/a><'/li>
<'li><'a href="#">Future Projects<'/a><'/li>
<'li><'a href="#">Get in Touch<'/a><'/li>
<'/ul>
I know that I could redo everything using JavaScript but it'd be very nice to continue working in HTML or something that intuitively feels like it.