Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/apendua/meteor-copy-template

A meteor package for copying templates
https://github.com/apendua/meteor-copy-template

Last synced: 20 days ago
JSON representation

A meteor package for copying templates

Awesome Lists containing this project

README

        

# meteor-copy-template

This package allows you to copy your templates.

## Installation

To use this package, run

meteor add mrt:copy-template

## Usage

Supposing you've defined

```html

...

```

you can copy it using:

```javascript
Template.__copy__("copyOfMyTemplate", "myTemplate");
```

This should be equivalent to defining template named `copyOfMyTemplate`
with the same code as `myTemplate`. Note, that only rendering code
is the same, both templates have their own `events` and `helpers`.