blask-0.2.3
توضیحات
A simple Blog engine using Flask and Markdown.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | blask-0.2.3 |
| نام | blask |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | zerasul |
| ایمیل نویسنده | zerasul@gmail.com |
| آدرس صفحه اصلی | https://getblask.com |
| آدرس اینترنتی | https://pypi.org/project/blask/ |
| مجوز | GPL 3.0 |
# BLASK
[](https://travis-ci.org/zerasul/blask) [](https://coveralls.io/github/zerasul/blask?branch=master) [](https://sonarcloud.io/dashboard?id=blask-project-key)[](https://badge.fury.io/py/Blask) [](http://pepy.tech/count/blask) [](https://hub.docker.com/r/zerasul/blask) <span class="badge-buymeacoffee"><a href="https://buymeacoffee.com/zerasul" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a></span>
Blask is a blogging engine based on [Flask](http://flask.pocoo.org/). Blask uses Markdown syntax to create and render
the contents of blog posts.
Blask uses the Jinja2 template engine to render the web templates.
To install Blask, use ```pip```:
```pip install blask```
or download the source code:
```git clone https://github.com/zerasul/blask/```
Later, you need to create a ```settings.py``` file:
```python
templateDir = "templates"
postDir = "posts"
defaultLayout = "template.html"
staticDir = "static"
title = "Blask | A Simple Blog Engine Based on Flask"
errors= { 404: "404"}
```
For last, to Run Blask, use the next Code:
```python
from blask import BlaskApp
import settings
if __name__ == '__main__':
b = BlaskApp(templateDir=settings.templateDir, postDir=settings.postDir
, defaultLayout=settings.defaultLayout,
staticDir=settings.staticDir, title=settings.title, errors={404:'404'})
b.run()
```
Also, you can use a environment variable to set the settings:
```bash
export BLASK_SETTINGS=settings
```
You can use the Blask Command Line Tool to run the site:
```bash
blaskcli run --port 4444 #sets the port to 4444
```
For more information, see the [Blask web page](http://getblask.com/). Also, you can subscribe to our [Mailing List](https://www.freelists.org/archive/blask_mail_list).
---
You can see the [Code of Participation](https://www.mozilla.org/en-US/about/governance/policies/participation/) of this project.
Blask is Open Source under the [GPL 3.0](LICENSE) License
نیازمندی
| مقدار | نام |
|---|---|
| - | flask |
| - | markdown |
| - | Pygments |
| - | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl blask-0.2.3:
pip install blask-0.2.3.whl
نصب پکیج tar.gz blask-0.2.3:
pip install blask-0.2.3.tar.gz