-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
se corrigio pequeños errores y la configuracion de webpack
- Loading branch information
fernik
committed
Nov 20, 2020
1 parent
a98d49c
commit 4126aab
Showing
7 changed files
with
72 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,52 @@ | ||
# PatronJs | ||
# PatronJs [![npm version](https://badge.fury.io/js/jspatron.svg)](https://badge.fury.io/js/jspatron) | ||
|
||
[![npm version](https://badge.fury.io/js/jspatron.svg)](https://badge.fury.io/js/jspatron) | ||
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. | ||
|
||
PatronJs es framework basado el la arquitectura modelo vista controlador, utilizando ES5 async/await para renderisar vistas y compilar datos.ideal para aplicaciones de una sola pagina. | ||
Es extensible donde pueden integrar librerias o crear funcionalidades disponible en toda tu aplicacion. | ||
|
||
## 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 | ||
|
||
|
||
```typescript | ||
route.has (url: string, option_controller: object | Function, method_execute: string) | ||
``` | ||
|
||
**example** | ||
```javascript | ||
class IndexController extends MainController { | ||
constructor () {super ()} | ||
home() { | ||
return 'home' | ||
} | ||
} | ||
|
||
route.has ('/', IndexController, 'home') | ||
``` | ||
or | ||
```javascript | ||
route.has ('/', { | ||
controller: IndexController, | ||
// load assets css or js | ||
load: { | ||
js: ['index'], | ||
css: [] | ||
} | ||
}, 'home') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters