jspatron-skeleton

1.0.0 • Public • Published

PatronJs npm version

PatronJs is a framework based on the model view controller architecture, using ES5 async / await to render views and compile data, ideal for single page applications. It is extensible where you can integrate libraries or create functionalities available throughout your application.

Directories

  • directory - app / all controllers for the view are added.

  • directory - bootstrap / where the application is initialized and adds the accessible routes.

  • directory - config / add all project and framework configurations.

  • directory - public / public access to content.

  • directory - views / where the view is prepared and added to the main document.

routes file - bootstrap / route.js

route.has (url: string, option_controller: object | Function, method_execute: string)

example

class IndexController extends MainController {
    constructor () {super ()}
    home() {
        return 'home'
    }
}

route.has ('/', IndexController, 'home')

or

route.has ('/', {
    controller: IndexController,
    // load assets css or js
    load: {
        js: ['index'],
        css: []
    }
}, 'home')

Package Sidebar

Install

npm i jspatron-skeleton

Weekly Downloads

0

Version

1.0.0

License

BSD-2-Clause

Unpacked Size

18 kB

Total Files

26

Last publish

Collaborators

  • nikemadrid