Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

```