#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.
MIT