0.0.7 • Published 2 years ago

clean-core v0.0.7

Weekly downloads
6
License
BSD-2-Clause
Repository
-
Last release
2 years ago

Clear Core

Build Status

codecov

Core interfaces and classes for html applications.

Architecture

Page

Every page is html file in public directory. It includes:

  • common html elements (html, head, body)
  • mark-up (for template engine or raw html)

Advantages of this approach:

  • Client-side rendering and raw html can be used
  • Real URI for every page

Application

Application handle entry point in app (e.g. main.ts):

  • Execute global hooks
  • Check requested route for current page
  • Run Route Handler

Router

Contains map of URI -> Route Handler.

Route Handlers

Route Handler known how handle specific URI with given params. Route handling cases:

  • instantiate and execute Page Object with given Window context
  • redirection (based on URI params, Window context, etc)

Route inject all external Page Object dependencies.

Page Objects

Page Object instantiate html components (forms, widgets) and handle events.

0.0.7

2 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago