{"id":20580176,"url":"https://github.com/michaelliao/ssi-server","last_synced_at":"2025-03-06T11:49:31.139Z","repository":{"id":140002634,"uuid":"600384863","full_name":"michaelliao/ssi-server","owner":"michaelliao","description":"Server-Side-Includes Server \u0026 Generate Static Pages.","archived":false,"fork":false,"pushed_at":"2023-02-12T23:43:34.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T22:30:57.040Z","etag":null,"topics":["http-server","python3","server-side-includes","shtml"],"latest_commit_sha":null,"homepage":"https://ssi.itranswarp.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelliao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T10:25:30.000Z","updated_at":"2023-04-02T23:25:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ced0126-d6ab-405d-b6c1-0c47f30f0acc","html_url":"https://github.com/michaelliao/ssi-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fssi-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fssi-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fssi-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fssi-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelliao","download_url":"https://codeload.github.com/michaelliao/ssi-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242206006,"owners_count":20089252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http-server","python3","server-side-includes","shtml"],"created_at":"2024-11-16T06:21:09.165Z","updated_at":"2025-03-06T11:49:31.110Z","avatar_url":"https://github.com/michaelliao.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Side Includes Server\n\nSSI-Server is a simple HTTP server that supports the old Server-Side-Includes technology.\n\nUsing 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!\n\n# Usage\n\nStart server:\n\n```\n$ ./ssi_server.py [--port 8000] [--dir .]\n```\n\nGenerate static pages:\n\n```\n$ ./ssi_server.py -g [--dir .]\n```\n\n# Limitation\n\nOnly support `include file` directive:\n\n```\n\u003c!--#include file=\"header.html\" --\u003e\n```\n\nDirective must be in a single line that cannot contains other HTML tags:\n\n```\n\u003c!-- ok --\u003e\n\u003cdiv\u003e\n    \u003c!--#include file=\"header.html\" --\u003e\n\u003c/div\u003e\n\n\u003c!-- wrong --\u003e\n\u003cdiv\u003e\u003c!--#include file=\"header.html\" --\u003e\u003c/div\u003e\n```\n\n# Best Practice\n\nAlways use `.html` for links:\n\n```\n\u003c!-- index.shtml --\u003e\n\u003ca href=\"about.html\"\u003eAbout\u003c/a\u003e\n\u003c!-- will response to about.shtml if file exists --\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelliao%2Fssi-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelliao%2Fssi-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelliao%2Fssi-server/lists"}