{"id":20863351,"url":"https://github.com/howardabrams/fuzzytoast","last_synced_at":"2025-07-25T06:37:37.447Z","repository":{"id":66137082,"uuid":"1725450","full_name":"howardabrams/fuzzytoast","owner":"howardabrams","description":"A jQuery plugin for combining templates with data from web servers in a regular web browser.","archived":false,"fork":false,"pushed_at":"2012-05-21T20:56:59.000Z","size":424,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T12:46:27.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.fuzzytoast.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/howardabrams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-10T00:07:19.000Z","updated_at":"2014-03-12T16:40:27.000Z","dependencies_parsed_at":"2023-02-19T23:15:38.411Z","dependency_job_id":null,"html_url":"https://github.com/howardabrams/fuzzytoast","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howardabrams%2Ffuzzytoast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howardabrams%2Ffuzzytoast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howardabrams%2Ffuzzytoast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howardabrams%2Ffuzzytoast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/howardabrams","download_url":"https://codeload.github.com/howardabrams/fuzzytoast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225132977,"owners_count":17425910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T05:28:40.825Z","updated_at":"2024-11-18T05:28:41.435Z","avatar_url":"https://github.com/howardabrams.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"The **jQuery Fuzzytoast** plugin aims to easily combine data from\nstandard REST calls with *templates* and insert the results back into\nthe HTML layout.\n\nThis goal removes xSP processing from the server to the client, making\nthe server work significantly more straight-forward and easier. However,\nto help with the added complexity of the client, we've created this\nproject.\n\nUsage\n=====\n\nDownload a copy of the [`jquery.fuzzytoast.js`][1] code and include it in\nyour HTML document *after* including `jquery` and your favorite template\nengine, as in:\n\n    \u003cscript src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"js/libs/mustache.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"js/libs/jquery.fuzzytoast.js\"\u003e\u003c/script\u003e  \n\n  [1]: https://raw.github.com/howardabrams/fuzzytoast/master/web/js/jquery.fuzzytoast.js\n\nExample\n=======\n\nThe easiest way to use this plugin is to place a *fuzzytoast* aspect on\na button or some other object and have it grab an online template, some\ndata from a REST call and *insert* it as the child of some element, as\nin:\n\n    $('#some-buttom').fuzzytoast ({ \n        template   : 'templates/about.html',\n        data       : 'rest/some-data.json',\n        destination: \"#main' \n    });\n\nIn this case, a `templates/about.html` template is download and processed with\nthe data model from calling the server with a URL of `rest/some-data.json`.\nThe results are put back into the HTML page based on the jQuery selector \ngiven with the `destination` property.\n\nPretty easy, eh?\n\nWhy?\n====\n\nWhy did we write it and how does it compare to other, similar projects?\n\nThe approach of mapping REST documents with a template to display was a pattern\nwe were often implementing. Using FuzzyToast makes you web application much \nsimpler to build and maintain.\n\nThe FuzzyToast plugin works best if you can answer yes to the following:\n\n  * Is your web app small to medium in terms of size and complexity?\n  * The data from your server is either under your control or is similar \n    to the data you want to display.\n    \nWhile this plugin has been used with larger apps, it seems that if your\nweb application is quite complex (or your widget behaviors are quite involved), \nyou'll want to craft a solution with Backbone.\n\n\nRelease Notes\n=============\n\nThe following is a brief summary of the major releases of this software.\nKeep in mind that we release regularly with only one or two changes per release.\n\n  * **v1.2.0** - Deprecated the `finished` callback in favor of `complete`. (Both work at this point).\n  * **v1.1.5** - Added a `before` callback function called before an FT request for spinners and whatnot.\n  * **v1.1.4** - Added a `refresh` option to FT calls to automatically redownload the data and re-render the template.\n  * **v1.1.3** - Added a `.loadWithCache()` function to be a more efficient replacement for jQuery's `.load()` function. \n  * **v1.1.2** - Allow data from multiple REST API urls to be combined in a single document.\n  * **v1.1.1** - Support for [Mustache][2], [Handlebars][3], [Underscore][4] and other template systems.\n  * **v1.0.1** - Support for partial templates, where one template can include other templates.\n  * **v1.0.0** - Initial release with a demonstration.\n\nFor details on these releases, please see [the FuzzyToast documentation][5].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowardabrams%2Ffuzzytoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhowardabrams%2Ffuzzytoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowardabrams%2Ffuzzytoast/lists"}