Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/apendua/meteor-copy-template
- Owner: apendua
- Created: 2013-11-04T15:18:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-08T14:04:22.000Z (over 9 years ago)
- Last Synced: 2024-10-09T09:34:06.609Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`.