We Now Support Server Side Includes
As part of our mission to "make the lives of web designers more better" today we pushed live support for server side includes in HTML templates.
What is a server side include?
A server side include is a snippet of code that allows you to pull the contents of one HTML file into another HTML file. For instance the footer of a website is typically the same exact code from template to template and therefore redundant. A server side include allows you to remove that content from each template file and put it in one file then dynamically pull that file into each template. The advantage comes when you have to update that code, you only have to change one file.
Example
<html>
<body>
<!--#include virtual="/includes/masthead.html -->
...
<!--#include virtual="/includes/footer.html" -->
</body>
</html>
For more information, check out our documentation page for server side includes.
A server side include is a snippet of code that allows you to pull the contents of one HTML file into another HTML file. For instance the footer of a website is typically the same exact code from template to template and therefore redundant. A server side include allows you to remove that content from each template file and put it in one file then dynamically pull that file into each template. The advantage comes when you have to update that code, you only have to change one file.
Example
<html>
<body>
<!--#include virtual="/includes/masthead.html -->
...
<!--#include virtual="/includes/footer.html" -->
</body>
</html>
For more information, check out our documentation page for server side includes.
comments powered by Disqus