Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    place-pluginpublic

    Place plugin

    A Seam plugin for declaratively appending seam views to the DOM.

    Installation

    npm install place-plugin

    How to use

    Require place-plugin:

    var PlacePlugin = require("place-plugin");

    Initialize PlacePlugin

    var placePlugin = new PlacePlugin();

    Add it SeamViews

    placePlugin.addAll({
        "view1": new SeamView(),
        "view2": new Seamview()
    });

    Declaratively add views to the dom:

    <div data-place="place: view1"></div>
    <div data-place="place: view2"></div>

    Add place plugin to your Seam or SeamView

    // Most likely if you are using bare seam: 
    seam.add("place", placePlugin);
     
    //Most likely if you are using SeamView: 
    seamView.seam.add("place", placePlugin);

    And then, when you apply seam or render your seamView, your views will be automatically appended.

    LICENSE

    MIT

    install

    npm i place-plugin

    Downloadslast 7 days

    3

    version

    0.0.1

    license

    none

    homepage

    github.com

    last publish

    collaborators

    • avatar