Teleport renders your Blaze templates wherever you feel like!
- Render stuff outside of your app's DOM tree.
- Handy for preventing style cascade or glitches with layering.
- Great for modals or dialogs.
- Tiny footprint. Well below 1kB compiled and minified.
- Has a logo.
$ meteor add arggh:teleport
Teleport will register a new Blaze template that is used as a block helper. Anything you put inside it will get magically teleported to the requested destination.
destination
is optional and defaults to document.body
. If provided, it should be either a DOM Element or a CSS selector.
If you want to contribute and improve the package, make sure to run the tests. Clone the package and run the following command:
$ TEST_WATCH=1 meteor test-packages ./ --driver-package meteortesting:mocha
Teleport is released under the MIT License.