https://github.com/michaelliao/ssi-server
Server-Side-Includes Server & Generate Static Pages.
https://github.com/michaelliao/ssi-server
http-server python3 server-side-includes shtml
Last synced: about 1 year ago
JSON representation
Server-Side-Includes Server & Generate Static Pages.
- Host: GitHub
- URL: https://github.com/michaelliao/ssi-server
- Owner: michaelliao
- License: gpl-3.0
- Created: 2023-02-11T10:25:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T23:43:34.000Z (about 3 years ago)
- Last Synced: 2025-01-16T22:30:57.040Z (over 1 year ago)
- Topics: http-server, python3, server-side-includes, shtml
- Language: HTML
- Homepage: https://ssi.itranswarp.com
- Size: 53.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server Side Includes Server
SSI-Server is a simple HTTP server that supports the old Server-Side-Includes technology.
Using SSI to design .shtml can reduce lots of templating work, and simply publish all .shtml to .html pages to make everything works on GitHub pages or other static web server!
# Usage
Start server:
```
$ ./ssi_server.py [--port 8000] [--dir .]
```
Generate static pages:
```
$ ./ssi_server.py -g [--dir .]
```
# Limitation
Only support `include file` directive:
```
```
Directive must be in a single line that cannot contains other HTML tags:
```
```
# Best Practice
Always use `.html` for links:
```
```