https://github.com/donejs/ir-clone
Clone DOM that can be used in other contexts
https://github.com/donejs/ir-clone
Last synced: 5 months ago
JSON representation
Clone DOM that can be used in other contexts
- Host: GitHub
- URL: https://github.com/donejs/ir-clone
- Owner: donejs
- License: mit
- Created: 2018-10-22T17:30:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T04:42:30.000Z (about 5 years ago)
- Last Synced: 2025-02-01T05:32:41.791Z (5 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ir-clone
[](https://travis-ci.org//ir-clone) [](https://greenkeeper.io/)
## Usage
### ES6 use
With StealJS, you can import this module directly in a template that is autorendered:
```js
import plugin from 'ir-clone';
```### CommonJS use
Use `require` to load `ir-clone` and everything else
needed to create a template that uses `ir-clone`:```js
var plugin = require("ir-clone");
```### Standalone use
Load the `global` version of the plugin:
```html
```