longshotlabs / meteor-template-extension

A Meteor package: Replace already defined templates, inherit helpers and events from other templates
https://atmospherejs.com/aldeed/template-extension
MIT License
220 stars 20 forks source link

Return the newly created template from `copyAs(...)` #9

Closed paulbalomiri closed 9 years ago

paulbalomiri commented 9 years ago

This could help in many instances to reduce code verbosity.

In my case, using coffee template decalarations like these:

do(tmpl=Template.my_template.copyAs 'my_template_copy')->
 tmpl.helpers ....

would make the code more readable

jgladch commented 9 years ago

Waiting for review in #18