Skip to content

Bundle less web apps with SSR without any tooling

Notifications You must be signed in to change notification settings

tornqvist/archaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archaic

Bundle less web apps with SSR without any tooling

This is a draft for a framework without any (or optional) bundling or tooling yet flexible, performant and proper server side rendering (SSR).

Using Server Side Includes (ssi), supported in both NGINX and Apache, web pages render properly on the server and come to life with JavaScript.

<!doctype html>
<html>
<head>
  <title>Welcome</title>
  <script type="module" src="/index.js"></script>
</head>
<body>
  <!--#include virtual="/components/header/index.html" -->
  <h1>Hello planet!</h1>
  <!--#include virtual="/components/footer/index.html" -->
</body>
</html>

Included are examples with NGINX, Apache (both supporting ssi) and Node.js (client side rendering).

Run the example in docker with docker-compose up to try it out. All file changes are reflected immediately without any need for bundling och installing dependencies.

About

Bundle less web apps with SSR without any tooling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published