0.10.2 • Published 7 months ago

node-pbframework v0.10.2

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Readme

Compile Stylus

El sistema compila todos los stylus que encuentra en la carpeta client

Los compila cuando:
* Al salvar un file tramite un watcher
* Al iniciar el servidor

Soporte a pbStylus framework

Agregar documentacion

Soporte a mongoDb y a un CRUD

Agregar documentacion

Soporte a Express

Agregar documentacion

Middlewares

Init

Adds Adds res.middleware = {}; to the res object;

import {Middleware} from 'node-pbframework';

app.use(Middleware.init);

parseUrl

Append a parsed URL to res.middleware.url. Parsed url follows node.js URL.parse

import {Middleware} from 'node-pbframework';

app.use(Middleware.parseUrl);

/*
console.log(res..middleware.url) -> {
    "protocol": "https:",
    "slashes": true,
    "auth": null,
    "host": "heroku-prod-tienda-48284eca9fd7.herokuapp.com",
    "port": null,
    "hostname": "heroku-prod-tienda-48284eca9fd7.herokuapp.com",
    "hash": "#title1",
    "search": "?color=red",
    "query": "color=red",
    "pathname": "/es-ar/category/category-1",
    "path": "/es-ar/category/category-1?color=red",
    "href": "https://heroku-prod-tienda-48284eca9fd7.herokuapp.com/es-ar/category/category-1?color=red#title1"
}
*/
0.8.4

7 months ago

0.10.0

7 months ago

0.10.1

7 months ago

0.9.0

7 months ago

0.10.2

7 months ago

0.8.3

7 months ago

0.8.2

10 months ago

0.8.1

10 months ago

0.8.0

11 months ago

0.7.0

11 months ago

0.6.0

11 months ago

0.5.0

11 months ago

0.4.0

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago