npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

This package has been deprecated

Author message:

see deep-app.

deep-browser

0.3.0 • Public • Published

deep-browser

Generic browser environnement for deepjs framework.

This lib comes with two independents parts :

  • structured deep-views management tools that provides browser dedicated deep-routes API and deeplinking through min-history.
  • login/logout/session/impersonate/reload management tools and chained API

install

bower install deep-browser

or

npm install deep-browser

or use deep-browser yeoman generator.


Structured views

Simple example :

define([
    "require",
    "deepjs/deep",
    "deep-jquery/lib/dom",
    "deep-views/lib/view",
    "deep-browser/lib/route",
    "jquery/dist/jquery.min"
],
function(require, dp) {
    deep = dp; // place deep in globals. (I like it so in the browser ;)
    deep.context("$", $);  // bind jquery ref to context
    deep.jquery.dom("dom"); // declare dom protocol
 
    var map = { // define your structured views map
        home:deep.View({
            route:"/[home,$]",
            how:"<div>hello</div>",
            where:"dom.htmlOf::#content"
        }),
        profile:deep.View({
            route:"/profile/?s:name",
            how:"<div>Hello { name | 'dude' } !</div>",
            where:"dom.htmlOf::#content"
        })
    };
 
    return function($){
        return deep.route.init(map);
    }
});

See example folder in deep-browser lib.

Login famillies management

Docs coming soon.

Licence

LGPL 3.0

Keywords

none

install

npm i deep-browser

Downloadsweekly downloads

12

version

0.3.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability