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

Introduces a fw.options.fetchHtml() helper. #2723

Merged

Commits on Jul 31, 2017

  1. Introduces a fw.options.fetchHtml() helper.

    This makes fetching HTML from the backend and rendering option types a
    breeze. It implements a simple key-value cache for the results and
    stores them in memory. Cache can be cleared by demand, when the user of
    the helper wants to re-fetch every option type.
    
    fw.options.fetchHtml(options, values);
    fw.options.fetchHtml.getCacheEntryFor(options, values);
    fw.options.fetchHtml.emptyCache();
    andreiglingeanu committed Jul 31, 2017
    Copy the full SHA
    769f44b View commit details
    Browse the repository at this point in the history