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

add a way to test methods inside documentation #38

Closed
millermedeiros opened this issue Feb 25, 2012 · 1 comment
Closed

add a way to test methods inside documentation #38

millermedeiros opened this issue Feb 25, 2012 · 1 comment

Comments

@millermedeiros
Copy link
Owner

sometimes I want to test the methods while outside an application, it would be great if docs had some sort or REPL like javascript sandbox console

@millermedeiros
Copy link
Owner Author

maybe it don't need to be as complex, just exposing all the methods in the global scope would be enough, like:

require(['../src/math'], function(math){
  window.utils.math = math;
});

and adding a comment somewhere in all the doc pages that you can access the methods on the browser console inside a namespace of the same name as the module name.

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

No branches or pull requests

1 participant