Basic Concepts related to JustPy

Components

As stated earlier, JustPy components are classes that contains specific design or code which can be resued by the user just by creating an object of it and calling it via the object. In the above example –

div = jp.Div(text='Hello Geeks')

This line is similar to the HTML version –

<div> Hello Geeks </div>

Web Pages

Web Pages are also a component of JustPy and they are instance of the WebPage class of JustPy. We need to first create an instance of it then add elements as we want.

web_page = jp.WebPage()

The variable web_page is storing the instance of the WebPage() class. Now we can add text or any other element by calling add() method.

web_page.add(div)

Finally, we need to return the object of the WebPage class, i.e in which we have instantiated the class and stored it.

Introduction to JustPy | A Web Framework based on Python

JustPy is a web framework that leverages the power of Python to create web applications effortlessly. In this article, we’ll explore JustPy, its features, and why it’s gaining attention among developers.

Similar Reads

What is the JustPy Module of Python?

The JustPy module of Python is a web framework like Django but it is an oriented, Component-Based, and High-level framework with required zero Front End Programming. Users who don’t know Frontend technologies like JavaScript can easily build some interactive websites without any Frontend knowledge, just by using Python Code and not a single line of JavaScript....

Basic Concepts related to JustPy

...

Adding some Basic HTML Components

Components...