Documentation
Learn how to use eklbaoa to create modern web applications with powerful features and elegant design.
Getting Started
Step 1:
Include eklbaoa in your project via CDN:
<script src="https://unpkg.com/eklbaoa@latest"></script>
Step 2:
Create your first component:
<script>
// Example component
eklbaoa.createComponent("hello-world", {
template: "<h1>Hello {{ name }}</h1>",
data: { name: "World" }
});
</script>
<hello-world></hello-world>
Core Concepts
Reactive Data Binding
eklbaoa automatically updates the DOM when your component's state changes using one-way data flow.
Component-Based Architecture
Build encapsulated components that can be reused across projects with clear interface definitions.
Routing System
eklbaoa's built-in router enables SPA navigation with zero-configuration out of the box.
Server-Side Rendering
Generate fully working HTML pages on the server for improved SEO and performance.
API Reference
createComponent
eklbaoa.createComponent(name: string, options: {
template: string,
data: Record<string, any>,
methods?: Record<string, Function>,
computed?: Record<string, Function>
}): void
Returns: Void - Registers a new reusable component
Best Practices
- Organize large applications using the folder structure of your project
- Use TypeScript for type safety in large projects
- Leverage the dev tools for real-time performance insights