Socket
Socket
Sign inDemoInstall

@kohanajs/esm-mvc

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @kohanajs/esm-mvc

The MVC classes inspired from Kohana framework's pattern


Version published
Weekly downloads
1
Maintainers
1
Install size
9.79 kB
Created
Weekly downloads
 

Readme

Source

KohanaJS core-mvc

The mvc inspired from PHP's Kohana framework's pattern.

The core mvc defines MVC classes

Model

Model is simple Javascript Object. Define it for future extension.

View

View is Adapter for different template engine. User store data in view.data, then render it to get text.

Controller

Controller is the class accept request and return response from a client. It provides 3 stages to execute a request.

  1. before()
  2. action_XXX()
  3. after()

ControllerMixin

Decorator for Controllers to perform additional functionality

FAQs

Last updated on 01 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc