bristlerouter

    0.2.5 • Public • Published

    BristleRouter

    Create single page applications with BristleJS. The BristleRouter function returns a Bristle object given a map of routes with Bristles as values.

    Example

    import Bristle from 'bristlejs';
    import BristleRouter from 'bristlerouter';
    
    var app = new Bristle({type:div,id:'app'},null,document.body);
    var home = new Bristle('p','Welcome to the homepage.');
    var help = new Bristle('p','Contact us at support@fakemail.com');
    BristleRouter({'/':home,'/help':help}).appendTo(app);
    

    Install

    npm i bristlerouter

    DownloadsWeekly Downloads

    1

    Version

    0.2.5

    License

    ISC

    Last publish

    Collaborators

    • calebblack