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 you return an asynchronous value? #4

Closed
H23120 opened this issue Jun 21, 2014 · 1 comment
Closed

Can you return an asynchronous value? #4

H23120 opened this issue Jun 21, 2014 · 1 comment

Comments

@H23120
Copy link

H23120 commented Jun 21, 2014

Hi,
The render function return an asynchronous value, wouldn't html returned as undefined???

Backbone.Marionette.Renderer.render = function (template, data) {
        var html;
        dust.render(template, data, function (err, out) {
            html = out;
        });
        return html;
    };
@H23120
Copy link
Author

H23120 commented Jun 21, 2014

@H23120 H23120 closed this as completed Jun 21, 2014
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