BuckshotPlusPlus
  • 🤝Getting started
    • What is BuckShotPlusPlus?
    • Install
  • 📺Video tutorials
    • Getting started with bpp
    • How to use reusable components
    • How to use events
  • 👔Data types
    • Variables
    • Arrays
    • View
    • Data
    • Page
    • Event
  • 🤓The basics
    • Comments
    • Include
    • String concatenation
    • Conditions
    • Sessions
    • Static site export
  • 🔍SEO
    • Sitemap.xml
    • Meta tags
  • Advanced use
    • CSS Properties
Powered by GitBook
On this page
  • How it works
  • Declaring data
  • Using data
  • Use cases
  • Important notes

Was this helpful?

Export as PDF
  1. Data types

Data

Discover what is the data datatype and how to use it

PreviousViewNextPage

Last updated 1 year ago

Was this helpful?

In , the data datatype represents a structured set of information that cannot be directly rendered as visual content. While it shares similarities with the datatype, its primary purpose is to hold and manage data rather than define visual elements.

How it works

Declaring data

Data objects in are declared similarly to . However, unlike , they don't have properties related to visual rendering. Instead, they contain properties that define specific pieces of data or information.

For instance, the object in is of type data. This object contain properties related to a user's session, such as session ID, user preferences, or authentication tokens (coming soon).

Using data

While data objects can't be rendered directly, they can be referenced and used within or other parts of your application. For example, you might use a data object to store configuration settings and then reference those settings within a to determine its behavior or appearance.

Use cases

  1. Storing Configuration: Data objects can be used to store configuration settings or other non-visual data that your application needs to reference.

  2. Data Relationships: Data objects can reference other data objects or , allowing you to establish relationships between different pieces of data.

Important notes

  • Always ensure that data objects are used for their intended purpose: to store and manage data. Avoid trying to use them as substitutes for views or other visual elements.

  • Organize and structure your data objects in a way that makes them easy to manage and reference throughout your application.

👔
BuckshotPlusPlus
view
BuckshotPlusPlus
views
views
session
BuckshotPlusPlus
views
view
views