Skip to content

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

Open
percygrail wants to merge 1 commit into
geddy:masterfrom
percygrail:helpers_shared_client_server
Open

Added some code generation that hangs the helpers off the geddy global in the client and also handles the exports issue#517
percygrail wants to merge 1 commit into
geddy:masterfrom
percygrail:helpers_shared_client_server

Conversation

@percygrail
Copy link
Copy Markdown
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.

1 participant