Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

Redemption.js is component-oriented framework designed for building web-apps

License

Notifications You must be signed in to change notification settings

dzikoysk-playground/redemption.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redemption.js

Amen.

Concept

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <script src="../dist/redemption.dev.js"></script>
    </head>
    <body>
        <script src="application/Application.js"></script>
    </body>
</html>
var redemption = new Redemption();
redemption.enableModifications();

redemption.loadDependencies([
    './application/components/HeaderComponent.js',
    './application/components/ContentComponent.js']
);

redemption.onload(function () {
    redemption.initializeStructure({
        head: new HeadComponent(),
        content: new ContentComponent()
    });
    redemption.disableModifications();
});
function HeaderComponent() {
    this.component = new Redemption.Component('header');
}

HeaderComponent.prototype.create = function (redemption, rom, parentComponent) {
    this.component.getElement().innerHTML = 'Hello Redemption.js';
};

HeaderComponent.prototype.render = function (redemption, rom, parentComponent) {
    this.component.render(parentComponent);
};

Repository structure

Redemption.js/
+--dist/                     Built sources
+--src/                      All sources of Redemption.js
+--test/                     Test sources
+--build.sh                  Build script
+--package.json              NPM file

About

Redemption.js is component-oriented framework designed for building web-apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published