Documentation
Comprehensive guides and API references for building with Template.
Getting Started
1. Installation
Use our CLI tool or copy the template files directly into your project via npm or GitHub.
npm create template-app@latest
2. Configuration
Configure your template with custom themes, plugin options, and runtime preferences.
{
"theme": "dark",
"features": ["security", "realtime"]
}
API Reference
Core Module: Template
template.init(options)
Initialize the template with configuration options.
import Template from 'template';
const app = new Template({
theme: 'dark',
debug: true
});
template.events.on(event, handler)
Subscribe to template lifecycle events.
app.events.on('render', (data) => {
console.log('Render event triggered', data);
});
Examples
Responsive Cards
Use the built-in responsive system across all breakpoints.
class="container md:flex"
Theme Switcher
Toggle between light and dark modes globally.
app.theme.set('dark');