An old experiment which was converted in a fully functional HTML preprocessor. This mini language (HTMLEX) is an extension of HTML which gives you the power to use special tags with some kind of logic (<!if>, <!function>, <!include>, <!macro>, etc.).
<!function mainlayout $content> <html> <body> <div>Header</div> <div class="content"><!include $content></div> <div>Footer</div> </body> </html> <!end>
<!include template.htex> <!mainlayout index-content.htex>
This is an open source project located in github: