# 📄Page Structure

In Flask, maintaining a consistent layout across multiple web pages is achieved through the use of base templates and template inheritance, We have created different **base layouts** in templates/layouts like **main-layout.html, auth-layout.html, component-layout.html** for different views for different pages.

```
<!doctype html>
<html lang="en">
    <head>
        {% block title %}
        {% endblock %}
        {% block css1 %}
        {% endblock %}

        {% include './head-css.html' %}
        
        {% block css2 %} 
        {% endblock %}
    </head>

    <body data-pc-preset="preset-1" data-pc-sidebar-caption="true" data-pc-layout="vertical" data-pc-direction="ltr" data-pc-theme_contrast="" data-pc-theme="light">
    {% include './layout-vertical.html' %} 
    <div class="pc-container">
      <div class="pc-content">
        {% block mainContent %}
        {% endblock %}
      </div>
    </div>
      <!-- Add your main content here -->
      {% include './footer-block.html' %}
      {% include './customizer.html' %}
    
    {% block js1 %}
    {% endblock %}
    {% include './footer-js.html' %}
    {% block js2 %}
    {% endblock %}
  <body>

</html>
```

### Layout settings <a href="#light-able-django-folders-structure" id="light-able-django-folders-structure"></a>

You can change the default layout in the **templates/layouts/main-layout.html** file in the body tag

```

<body 
    data-pc-preset="preset-1" 
    data-pc-sidebar-caption="true"
    data-pc-layout="vertical" 
    data-pc-direction="ltr" 
    data-pc-theme_contrast="" 
    data-pc-theme="light"
>
```

<br>

| Attribute                       | Description                                                                            |
| ------------------------------- | -------------------------------------------------------------------------------------- |
| data-pc-preset= "preset-1"      | To set the your primary theme color you can change \['preset-1' ] for different color. |
| data-pc-sidebar-caption= "true" | To set the caption on.                                                                 |
| data-pc-layout = "vertical"     | To set the vertical Sidebar.                                                           |
| data-pc-direction = "ltr"       | To set the layout direction left to right.                                             |
| data-pc-theme = "light"         | To set the layout theme light.                                                         |
| data-pc-theme = "dark"          | To set the layout theme dark.                                                          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://phoenixcoded.gitbook.io/able-pro/flask/page-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
