Skip to content

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

License

Notifications You must be signed in to change notification settings

flams/place-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published