twent/ssg

Simplest Static Site Generator (SSG)

Maintainers

Details

github.com/twent/php-ssg

Source

Issues

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

0.0.1 2023-07-29 14:36 UTC

This package is auto-updated.

Last update: 2024-04-29 16:22:01 UTC


README

Simplest SSG for your sites using Blade & Vite.

Features:

  1. Generation from JSON files
  2. Blade template engine from Laravel
  3. Vite CSS & JS compiler
  4. Sharing custom data between pages

Requirements

  • PHP 7.4 or higher
  • Recent versions of Node JS + yarn (or npm, pnpm etc.)

Installation:

  1. Clone this repo or run composer create-project twent/ssg YOUR_SITE_NAME
  2. Install deps make install
  3. Make testing build make

How to use:

  1. Views in resources/views
  2. Pages JSONs in resources/pages folder
  3. CSS & JS assets in resources/assets

Inspired by Cleaver