[dpdk-web] SSI or similar

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Dec 15 06:43:58 CET 2015


2015-12-14 22:51, Andriy Berestovskyy:
> > On 14 Dec 2015, at 21:53, Thomas Monjalon <thomas.monjalon at 6wind.com> wrote:
> > Thanks for the suggestion.
> > The current flat HTML files can be tested locally with just a browser.
> > How a change would be tested with SSI?
> 
> At the moment all the links inside the HTML files are not relative (i.e. start with a slash), so browser as is does not render the pages correctly anyway.

Yes you are right.
And the links do not use the .html suffix, it is found automatically
by the server.

> Having SSI enabled we could separate the content from the rest of the page, say:
> /dev.html: // the whole page to test with an HTTP server
>   includes inc/header.html
>   includes inc/menu.html
>   includes content/dev.html // flat HTML file to test with just a browser
>   includes inc/footer.html
> 
> So the „content" directory could be used to store flat HTML files, but without any headers/menus/footers.

OK for the inc directory but not for content. I would prefer having
the content in the original file.

> Alternatively, we could build (i.e. concatenate) HTML pages using a makefile or a script. So we could have a structure as above without any code duplication. Then we could build the pages with headers and menus to test them locally or to upload to a web-server.

Yes a "make local" to allow testing would be nice.

I would suggest to do it in 2 steps:
1/ "make local" for testing
2/ split with server-side includes

Please do not submit such change before end of January.
We need to make the workflow living smoothly first.
Thanks


More information about the web mailing list