Quick Start¶
As fronty is a very simple framework, it is very easy to use. You can easily create a website using. It is mainly focused on the frontend part. So, we haven't add any backend features. But, you can easily add backend features using any backend framework like Flask, Django, Fastapi etc.
But, we are working on a backend framework for fronty named Backkr. And we are also working on a database framework named Flexdb. So, you can easily create a full stack website with database using Fronty in only Python technology without knowing any kind of web technologies like HTML, CSS, and JavaScript.
Here we will use flask as a backend framework for making this documentation short. But, you can use any backend framework you want. We will update this documentation when we release Backkr and Flexdb. So, you can easily create a full stack website using only Python.
Starter template¶
This is a starter template for fronty. You can use this template to create a basic website using
fronty.
First, we import the Flask and request from flask. Then, we import Html, Head, Title, Meta, Body,
Element from fronty.html package.
Then, we create a flask app. Then, we create a home view function. This view function will return
a Html object. This Html object will contain the HTML code for the home page.
Then, we create a index view function. This view function will call the home view function and
render the HTML code.
Then, we run the flask app.
Fronty has a very simple syntax. You can easily create a website using it. It has some built-in element like Button, Link, Anchor etc. You can use these elements to create a website. You can also create your own element using the BaseElement class. We will see how to create a element in the customization section.