{"id":20290678,"url":"https://github.com/gocardless/angularjs_template_assets","last_synced_at":"2025-10-16T07:07:49.603Z","repository":{"id":52412724,"uuid":"8334371","full_name":"gocardless/angularjs_template_assets","owner":"gocardless","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-29T21:49:07.000Z","size":7,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":105,"default_branch":"master","last_synced_at":"2025-04-06T10:03:22.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/gocardless.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-02-21T12:07:03.000Z","updated_at":"2018-12-21T08:51:12.000Z","dependencies_parsed_at":"2022-09-06T06:00:27.572Z","dependency_job_id":null,"html_url":"https://github.com/gocardless/angularjs_template_assets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gocardless/angularjs_template_assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fangularjs_template_assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fangularjs_template_assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fangularjs_template_assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fangularjs_template_assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocardless","download_url":"https://codeload.github.com/gocardless/angularjs_template_assets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fangularjs_template_assets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279164413,"owners_count":26117694,"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-10-16T02:00:06.019Z","response_time":53,"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-11-14T15:08:41.594Z","updated_at":"2025-10-16T07:07:49.548Z","avatar_url":"https://github.com/gocardless.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angularjs_template_assets\n\n`angularjs_template_assets` does two things :\n\n* Prefill Angular.js $templateCache with all the HTML templates in your /assets directory\n* Since they’re now Javascrip file they’re compressed and cached as part of the standard assets processing of Rails pipeline.\n\n## Usage with Rails 3.1+\n\nAdd `angularjs_template_assets` to your Gemfile in the `assets` group :\n\n```ruby\ngroup :assets do\n\tgem 'angularjs_template_assets'\nend\n```\n\n## Usage without Rails 3.1+\n\nAlthough it hasn't been tested, `angularjs_template_assets` should be working with older version of Rails and with frameworks like Sinatra.\n\nAdd `angularjs_template_assets` to your Gemfile :\n\n```ruby\ngem 'angularjs_template_assets'\n```\n\nAdd the `AngularJSTemplateAssets.path` to your `Sprockets::Environment` instance. This lets Sprockets know where the Handlebars JavaScript files are and is required for the next steps to work.\n\n```ruby\nenv = Sprockets::Environment.new\n\nrequire 'angularjs_template_assets'\nenv.append_path AngularJSTemplateAssets.path\n```\n\n## TODO\n\n* Write tests\n* Allow to customize default namespace","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocardless%2Fangularjs_template_assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocardless%2Fangularjs_template_assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocardless%2Fangularjs_template_assets/lists"}