-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This prototype demonstrates the following key concepts:
-
Zig Application with QuickJS Integration:
- A Zig program that leverages QuickJS through its C bindings to execute JavaScript code.
- The application seamlessly interoperates with QuickJS, enabling dynamic scripting capabilities within a high-performance Zig environment.
-
User-Defined JavaScript Scripting:
- A user-provided JavaScript function that takes data as input, manipulates it, and returns the transformed result.
- This showcases how custom logic can be injected into the system using vanilla JavaScript, providing flexibility for end-users.
-
Dynamic HTML Generation:
- The manipulated data is used to generate a static HTML file, demonstrating how user scripts can influence the final output.
- This step highlights the integration of data processing and static site generation, a core feature of the system.
Purpose and Scope
While this prototype is not exhaustive or a fully realistic representation of Bonita, it serves as a proof of concept for how Bonita will utilize user-created JavaScript to manipulate static sites. Specifically, it illustrates:
- The ability to embed and execute user scripts within a Zig application.
- The seamless flow of data between Zig and JavaScript, enabling dynamic content manipulation.
- The generation of static HTML files based on processed data, showcasing the end-to-end workflow.
This prototype lays the groundwork for Bonita's vision of empowering users to customize and enhance static sites through JavaScript scripting, all within a performant and secure Zig-based environment.
Metadata
Metadata
Assignees
Labels
No labels