Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donejs/ir-clone
Clone DOM that can be used in other contexts
https://github.com/donejs/ir-clone
Last synced: 12 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T04:42:30.000Z (over 4 years ago)
- Last Synced: 2024-10-01T23:06:45.995Z (about 2 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
[![Build Status](https://travis-ci.org//ir-clone.svg?branch=master)](https://travis-ci.org//ir-clone) [![Greenkeeper badge](https://badges.greenkeeper.io/donejs/ir-clone.svg)](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
```