@varuntiwari/tomperjs
v1.0.5
Published
A classic Web-Framework
Downloads
3
Maintainers
Readme
🧾 Description
TomperJS is a web-framework based on MVC(Model-View-Controller) architecture pattern. It is very similar to one of the most popular web-framework BackboneJS
💿 Installation
npm i --save @varuntiwari/tomperjs
🏁 Example
import { View } from '@varuntiwari/tomperjs';
class MyView extends View {
template() {
return `
<div>
<h1>Awesome App</h1>
</div>
`;
}
}
const root = document.getElementById('root');
if (root) {
// Create view
const myView = new MyView(root);
// Render the view
myView.render();
}
✨ Features
- [x] Uses Model-View-Controller pattern.
- [x] Collection support for handling multiple models of similar type.
- [x] Reactive views which reacts to change on a Model.
- [x] User and custom events support using
Eventing
module. - [x] Built-in standard API controllers like
fetch()
andsave()
.
⚙ Tools and Technologies used
🛠 Local Installation and setup
Clone the repo to your local machine.
Install the required dependency for server using :
npm install
🏎 Creating production built
Build the package using
npm run build
Update the Docs using
npm run docs