Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mchorse/crystal-edge.php

Simple light-weight static website engine written in PHP (no dependencies)
https://github.com/mchorse/crystal-edge.php

Last synced: 21 days ago
JSON representation

Simple light-weight static website engine written in PHP (no dependencies)

Awesome Lists containing this project

README

        

# Crystal Edge

Simple light-weight static website engine wriiten in PHP. Don't use yet, it's
not tested and still in development. This is written on iPad in Notes app (seriously).

## Example

Basic example.

This code takes all files in current's path `content` folder, extracts files
from content folder, reads the content of those files, process them with Parsedown,
replacing the paths from `.md` to `.html` extension, and builds those files into
`./build` directory.

```php
plugins = [$only_md, $read, $parsedown, $extension];

/* Build and ship it */
(new FileSystemExport($site, './build/'))->export();
```

As the result, you get compiled static website from markdown in html in
the `build` folder.

There's also Wiki available on [GitHub](https://github.com/mchorse/crystal-edge.php/wiki)
(on which I'm working).

## License

Licensed under MIT license, see [LICENSE](./LICENSE) file.