place-plugin

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

Place plugin

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

npm install place-plugin

Require place-plugin:

var PlacePlugin = require("place-plugin");
var placePlugin = new PlacePlugin();
placePlugin.addAll({
    "view1": new SeamView(),
    "view2": new Seamview()
});
<div data-place="place: view1"></div>
<div data-place="place: view2"></div>
// 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