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

Added some code generation that hangs the helpers off the geddy global in the client and also handles the exports issue #517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

percygrail
Copy link
Contributor

This is a continuation of pull request #516.

Now the shared helper file (e.g. app/helpers/test.shared.js) looks like this:

exports.testSharedHelpers = function() {
  return '---------------Testing shared helpers---------------';
};

And the client side access looks like this:

console.log(geddy.helpers.testSharedHelpers());

Definitely cleaner. Thanks for the suggestions.

…l in the client and also handles the exports issue
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

Successfully merging this pull request may close these issues.

None yet

1 participant