{"id":16410233,"url":"https://github.com/danasilver/backbone-namespaced-view","last_synced_at":"2025-08-02T22:05:11.692Z","repository":{"id":58234213,"uuid":"49068957","full_name":"danasilver/backbone-namespaced-view","owner":"danasilver","description":"Backbone Views with namespaced elements.","archived":false,"fork":false,"pushed_at":"2018-01-23T01:57:02.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T07:43:10.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danasilver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-05T13:53:57.000Z","updated_at":"2018-01-23T01:55:32.000Z","dependencies_parsed_at":"2022-08-31T00:31:22.719Z","dependency_job_id":null,"html_url":"https://github.com/danasilver/backbone-namespaced-view","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/danasilver/backbone-namespaced-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fbackbone-namespaced-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fbackbone-namespaced-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fbackbone-namespaced-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fbackbone-namespaced-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danasilver","download_url":"https://codeload.github.com/danasilver/backbone-namespaced-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fbackbone-namespaced-view/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268464789,"owners_count":24254196,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-11T06:23:34.993Z","updated_at":"2025-08-02T22:05:11.654Z","avatar_url":"https://github.com/danasilver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backbone Namespaced View [![Build Status](https://travis-ci.org/danasilver/backbone-namespaced-view.svg?branch=master)](https://travis-ci.org/danasilver/backbone-namespaced-view)\n\nUse namespaced elements in your Backbone Views.\n\n## Usage\n\nSet the `tagName` property in your `Backbone.NSView` to namespace\n\n```js\nBackbone.NSView.extend({\n  tagName: 'svg'\n});\n```\n\nor to `namespace:tag`:\n\n```js\nBackbone.NSView.extend({\n  tagName: 'svg:rect'\n});\n```\n\n## Example\n\n```js\nvar SVGView = Backbone.NSView.extend({\n  tagName: 'svg',\n\n  render: function() {\n    this.$el.append(new Rect().render().el);\n  }\n});\n\nvar Rect = Backbone.NSView.extend({\n  tagName: 'svg:rect',\n\n  render: function() {\n    this.$el\n      .attr('x', 100)\n      .attr('y', 100)\n      .css('fill', 'steelblue');\n\n    return this;\n  }\n});\n\n$('body').append(new SVGView().render().el);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanasilver%2Fbackbone-namespaced-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanasilver%2Fbackbone-namespaced-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanasilver%2Fbackbone-namespaced-view/lists"}