https://github.com/bracketing/bracket
⚒ Bracket is an Elegant static site generator (in preview)
https://github.com/bracketing/bracket
bracket flask jinja2 python static-site-generator
Last synced: about 2 months ago
JSON representation
⚒ Bracket is an Elegant static site generator (in preview)
- Host: GitHub
- URL: https://github.com/bracketing/bracket
- Owner: bracketing
- License: mit
- Created: 2020-12-10T14:52:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-30T12:28:03.000Z (over 4 years ago)
- Last Synced: 2025-03-25T01:38:21.943Z (about 2 months ago)
- Topics: bracket, flask, jinja2, python, static-site-generator
- Language: Python
- Homepage: https://bracket.ink
- Size: 115 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bracket
**Bracket** is an Elegant static site generator. It encapsulates **[Jinja2](https://github.com/pallets/jinja)**. Its biggest highlight is to render the static pages in the form of **view function**, and support real-time **debugging**. It can also support **CSS framework**, **international routing** and more functions through ecological extension.
> *The project is being updated continuously, and the official version has not been completed yet*
## Installing
Install and update using [pip](pypi.org):
``` bash
$ pip install bracket
```## A Simple Example
``` python
from bracket import WebSite
from jinja2 import Templateapp = WebSite(__name__)
@app.pages("/")
def helloworld(context):
return context({
"title":"Welcome to Bracket",
"content":Template('''
{{ messages }}
![]()
'''),
"resources":{
"messages":"Welcome to Bracket"
}
})app.dispatch("/")
```
``` html
Welcome to Bracket
Welcome to Bracket
![]()
```
## Contributing
How to contribute to this project, report problems, and build a development environment, please refer to the [contribution guide]()
## Links
* Website: https://bracket.ink
* Documentation: https://github.com/bracketing/bracket/blob/main/docs/get.md
* Releases: https://pypi.org/project/bracket/
* Code: https://github.com/bracketing/bracket
* Issue tracker: https://github.com/bracketing/bracket/issues## License
The project is open source under MIT license in [GitHub Community](https://github.com). No one is allowed to infringe the copyright. Please follow `LICENSE`