{"id":13747073,"url":"https://github.com/angelo0000/backbone_filters","last_synced_at":"2025-05-09T08:31:16.284Z","repository":{"id":66374091,"uuid":"2198610","full_name":"angelo0000/backbone_filters","owner":"angelo0000","description":"before and after filter support for backbone.js","archived":false,"fork":false,"pushed_at":"2013-09-22T01:30:22.000Z","size":110,"stargazers_count":75,"open_issues_count":2,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-15T20:38:47.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/angelo0000.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-08-12T18:41:15.000Z","updated_at":"2023-09-08T16:30:10.000Z","dependencies_parsed_at":"2023-02-20T06:45:33.112Z","dependency_job_id":null,"html_url":"https://github.com/angelo0000/backbone_filters","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/angelo0000%2Fbackbone_filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelo0000%2Fbackbone_filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelo0000%2Fbackbone_filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelo0000%2Fbackbone_filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angelo0000","download_url":"https://codeload.github.com/angelo0000/backbone_filters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253216944,"owners_count":21872984,"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-08-03T06:01:13.747Z","updated_at":"2025-05-09T08:31:16.074Z","avatar_url":"https://github.com/angelo0000.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"_Disclaimer: This fork has been updated to work with Backbone 0.5.3_\n\n# Usage\n\nInclude `backbone_filters.js` after Backbone.\n\nIn your router you can now add:\n\n```javascript\nbefore: {\n\t'^clerks' : function() {\n\t\t/* do stuff to all routes starting with 'clerks' */\n\t\t/* return false to halt execution */\n\t},\n\t'another reg ex' : function() { }\n},\n\nafter: {\n\t'^clerks' : function() {\n\t\t/* do stuff */\n\t},\n\t'another reg ex' : function() { }\t\n}\n```\n\nYour filters will be called and if a filter returns false, the filter chain is halted.\nIf a before filter chain is halted, the action in the Router will not be called. Your\nfilters will receive the same arguments that get passed to the actions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelo0000%2Fbackbone_filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangelo0000%2Fbackbone_filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelo0000%2Fbackbone_filters/lists"}