cwmoss / slowfoot
There is no license information available for the latest version (dev-main) of this package.
your friendly static site generator
dev-main
2024-10-04 16:47 UTC
Requires
- php: ^8.2
- composer-runtime-api: ^2.2.2
- ausi/slug-generator: ^1.1
- benjaminhoegh/parsedown-extended: ^1.2
- bloatless/php-websocket: ^3.0
- bramus/router: ^1.6
- cwmoss/wrun: ^1.0
- docopt/docopt: ^1.0
- erusev/parsedown: ^1.7
- jbroadway/urlify: ^1.2
- league/flysystem-memory: ^2.0
- league/glide: ^2.0
- mnapoli/front-yaml: ^2.0
- ovidigital/js-object-to-json: ^1.0
- paragonie/easydb: ^2.11
- php-parallel-lint/php-console-color: ^1.0
- phplucidframe/console-table: ^1.2
- sensiolabs/ansi-to-html: ^1.2
- spatie/async: ^1.5
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11
This package is auto-updated.
Last update: 2024-11-04 17:03:31 UTC
README
W.I.P slowfoot
php >= 8.2
config
everything will change!
https://cwmoss.github.io/slowfoot/
sources
content sources have a unique name, a source type and opts
included source loader
- dataset, json nd, load_dataset()
- json, load_json()
- directory, markdown/ frontmatter, load_directory()
types
types are content types with template, path pattern or path function
hooks
available hooks
- on_load(row) => row || null
pipeline
include src/helper.php => SLOWFOOT_BASE (project root directory)
read config.php => sources, types, hooks
| load_sources
| load template helper
=> dataset, paths
| build pages from all types with defined templates
| build pages from src/pages folder
=> website
asset references
~/path/to.jpg relative to file-content-source-base ../parent/path/to.jpg relative to file-content-source-current-directory ./path/to.jpg relative to file-content-source-current-directory /path/to.jpg relative to project-source-directory