Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use this for true inheritance on templates? #57

Open
ecarlotti opened this issue Aug 15, 2018 · 0 comments
Open

Can I use this for true inheritance on templates? #57

ecarlotti opened this issue Aug 15, 2018 · 0 comments

Comments

@ecarlotti
Copy link

First of all, this is really great work, guys. All the code you have shared helps a lot.

What I mean by "true inheritance" is that I need to produce a package that has the bare-bones of the user interface (the settings interface, to be exact) for a loader application written in MeteorJS. The client code has the LOG viewer and the settings while the server code does all the hard work for the loader itself, parsing data and inserting it into MongoDB.

The problem is I was trying to build the default user interface package but at some point, I would add a {{> _DUMMYloaderSettings}} that would then be overwritten by a child template (in my case on the main application itself since the parent UI is encapsulated in a package) by means of the Template.loaderSettings.replaces('_DUMMYloaderSettings').

This method works fine for the visual part, since I can simply put the specific settings in my new template and have all standard settings be handled by the default UI interface on the package. The only problem is that (as documented) the helpers and events on the child template are simply not fired.

Is there any workaround (or an alternative way) for implementing such inheritance?

Thanks in advance,
/Edson Carlotti.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant