https://github.com/cdrubin/pash
https://github.com/cdrubin/pash
lua static-site-generator template
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cdrubin/pash
- Owner: cdrubin
- Created: 2024-09-22T20:12:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T21:04:15.000Z (3 months ago)
- Last Synced: 2025-03-30T16:16:57.484Z (3 months ago)
- Language: JavaScript
- Size: 18.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pash
`make build` (the default target) will do the following:
```
curl -L https://github.com/cdrubin/quickjs/releases/latest/download/qjs -o pash && chmod +x pash
curl -L https://cosmo.zip/pub/cosmos/bin/zip -o zip && chmod +x zip
zip pash .init.mjs pash.mjs marked.esm.js chromium-base64.js
(valid modification of APE zips requires: https://cosmo.zip/pub/cosmos/bin/zip)
```## usage:
./pash [indir] [outdir]
The following is default behaviour:
- files and directory names that start with . or _ are ignored
- .md files are converted to .html
- including a templet inside another is done with ${ pash.include( filename ) }---
still need to work on the idea of a CMS as dir in Cloudflare Pages
```
functions /
_content /
schemas /
blog.mjs :
JSON schema of what JSON objects should be
```which creates a UI for entry of blog posts and these are saved to KV during
progress and periodically saved to 'history' branch of repo so that
when creating site the static site generator (perhaps pashjs) reaches out
to the functions/_content/blogs.json feed for data that is used to create
the site pages