May 05, 2020
1 mins read
One of my side's projects is Blask; blask is a blog engine writed in Python, that can help you to grite a blog easily using Markdown markup Language. With Blask, you can create a web page in few minutes with only a few commands.
Blask is based on Flask framework for creating and showing the web page. And uses Markdown for generate the web page content. Lets see an example:
# this is a heading in MarkDown This is a paragraph.
If we use Blask with the earlier code, we get a web page with a heading
h1 and a paragraph using the Jinja2 template system. One of the main features of this engine; the content its dynamically created; so you don't need to generate the static content and upload your webpage to a hosting like other web page generators.
Blask have some other features like, search by author, category, tags or content search; its compatible with Docker Containers and you can use it on Python Anywhere.
Blask is uploaded to Python Pypi repository so you can install it using
pip install blask
And using the Blask Command Line Tool you can easily init and run one blask site in a few secconds. Lets see how to create and run one Blask site.
First of all, you need to install blask using pip ( you need Python 3.6 or later to use blask). And later use
blaskcli command to init a blask project.
This commands creates the minimum configuration needed to run a Blask page. Its creates one
posts folder with some markdwon files, one
templatesfolder with one html template.
Once you have your Blask Page, only you need to do is run Blask on this folder; lets use
blaskcli command again to run the page.
And if you go to localhost:5000 you can see your web page based on Blask. You can see a message like this:
If you like Blask, you can see the Project Repository on Github.