Я использую серверную часть для организации своих файлов.
Вложенные файлы не работают. Например: -
index.shtml — отлично работает
<!doctype html>
<html lang="en">
<!--#include virtual="partials/head.shtml"-->
<body>
<!--#include virtual="partials/components/ads/horizontal-banner.shtml"-->
<div id="site-wrapper">
<header id="site-header">
<!--#include virtual="partials/header.shtml"-->
</header>
<div id="site-body">
<!--#include virtual="partials/pages/home.shtml"-->
</div>
<footer id="site-footer">
<!--#include virtual="partials/footer.shtml"-->
</footer>
</div>
<!--#include virtual="partials/common.shtml"-->
внутри home.shtml есть еще один вызов
<!--#include virtual="../components/newsletter.shtml"-->
Ниже приведена структура проекта: -
project
- css
- assets
- js
- partials
- components
- ads
horizontal-banner.shtml
vertical-banner.shtml
newsletter.shtml
help.shtml
- pages
home.shtml
about.shtml
header.shtml
footer.shtml
head.shtml
common.shtml
index.shtml