create-bablojs
Version:
CLI tool to quickly scaffold a new BABLOJS project. BABLOJS is a lightweight, fast, and scalable Single Page Application framework built with vanilla JavaScript, providing React-like features including Virtual DOM, hooks, routing, and component-based arch
21 lines (15 loc) • 547 B
JavaScript
import { documentEvents } from "../../_modules/document.events.js";
import { babloApp } from "../../_modules/BabloApp.js";
import Config from "../config/config.js";
import { router } from "../../_modules/router.js";
import routes from "../routes/routes.js";
documentEvents.onDomContentLoaded(async () => {
// Initialize the application
const app = babloApp;
app.init(Config);
app.routes = routes.all();
app.root = document.getElementById("app");
// Initialize the router
router.init();
router.route();
});