-
Notifications
You must be signed in to change notification settings - Fork 421
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.Mustache: using local helpers inside partials #791
Comments
Any feedback on this issue? |
Try uncommenting it and seeing if our tests pass. |
For some reason tests does not work for me...
Tests are lunched. I even can open test page in browser. But suddenly it interrupts by timeout... |
What operating system are you using? |
Win7 |
From what I could find out so far, PhantomJS (which doesn't need to be installed btw, grunt-qunit uses the NPM package) runs a little slower on Windows. But now it sometimes hangs when running a different test. This might be solved when migrating from the Grunt QUnit task to Testee which I am planning to do (it didn't stall when I tried it at least). I will look into it some more but if it keeps stalling for you, too, to develop CanJS and write tests, the workaround would be just running |
I extended timeout to 60,000 ms. It gave time to pass http://localhost:8000/test/jquery.html test in browser:
BTW, as for development/contribution to CanJS - do you have any instructions (rules to create branches for fixes, pull requests and etc)? |
I re-compiled the code with uncommented /, options/ param and run the tests in browser. Both test/jquery.html and test/dist/jquery.html worked out fine for me, without errors. |
@isadovskiy Here's the contributing guide. |
To submit a fix, should I create a branch in original canjs repository or in own forked repository? |
Fork. |
Thanks for the clarification, Matthew. |
Helpers are now passed into partials. Fixes #791.
I tried to use local helpers (defined via can.view("#template", data, helpers)) inside partial. However partial did not find the helper.
Inside mustache.js I see the following code:
"Options" are commented for some reason. Uncommenting this piece makes helpers available inside partials. So is there any specific reason why it's commented and if uncommenting this line could cause ant issues?
The text was updated successfully, but these errors were encountered: