Stage 5 3. Micro Services [online] _day01 learn to build a CMS server development environment _07-CMS demand side include technical analysis -SSI service


Want to change a small portion of the page, the entire page do not want to submit to the server.
Only use a technology, the page is divided into several small pages


This section analyzes the Home management programs.
1, page content and more how to manage?
The page is split into a small one page, cms to manage through these little pages, when you want to change part of the page content only need to change the specific page of a small
plane.
2, pages ripped out how to browse through web services?
Using web services (eg nginx) of SSI technology, will merge multiple sub-pages rendered output.
3. The SSI is what?


ssi include command similar to incluce jsp page, ssi is the web server will include the page that contains the specified web page, html page rendering response
should be to the client. nginx, apache, etc. Most web container supports SSI directives.
ssi instructions are as follows:

<!‐‐#include virtual="/../....html"‐‐>

4, will be split into Home

index.html:首页主体内容
include/header.html:头部区域
include/index_banner.html:轮播图
include/index_category.html:左侧列表导航
include/footer.html:页尾


Header

split Carousel Figure


ngnix itself to support ssi. The following two lines of code says open ssi


test


Test Home to delete a page that contains the code off

so there is no page header


Guess you like

Origin www.cnblogs.com/wangjunwei/p/11527755.html