bablojs-test
Version:
A lightweight, fast, and scalable Single Page Application framework built with vanilla JavaScript. BABLOJS provides React-like features including Virtual DOM, hooks, routing, and component-based architecture without any build step or external dependencies
19 lines (15 loc) • 400 B
JavaScript
import Routes from "../../_modules/routes.js";
import Home from "../../views/Home.js";
import Config from "../config/config.js";
const routes = new Routes();
// Both ways work now:
// Option 1: Direct import (eager loading)
routes.route("/",
Home,
{
title: "Home",
description: Config.app.description,
keywords: Config.app.keywords,
}
);
export default routes;