place-plugin

0.0.1 • Public • Published

#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

Package Sidebar

Install

npm i place-plugin

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • podefr