{"id":20731117,"url":"https://github.com/stevenmhunt/rendr-controller-factory","last_synced_at":"2026-04-18T21:05:59.621Z","repository":{"id":148606364,"uuid":"20584229","full_name":"stevenmhunt/rendr-controller-factory","owner":"stevenmhunt","description":"Provides a clean and simple way of building Rendr controllers, and minimizes boilerplate code.","archived":false,"fork":false,"pushed_at":"2014-06-07T03:59:35.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T15:02:29.924Z","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/stevenmhunt.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":"2014-06-07T03:07:36.000Z","updated_at":"2014-06-07T03:59:32.000Z","dependencies_parsed_at":"2023-03-29T13:02:24.973Z","dependency_job_id":null,"html_url":"https://github.com/stevenmhunt/rendr-controller-factory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stevenmhunt/rendr-controller-factory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmhunt%2Frendr-controller-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmhunt%2Frendr-controller-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmhunt%2Frendr-controller-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmhunt%2Frendr-controller-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenmhunt","download_url":"https://codeload.github.com/stevenmhunt/rendr-controller-factory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmhunt%2Frendr-controller-factory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31984583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-17T05:13:46.256Z","updated_at":"2026-04-18T21:05:59.598Z","avatar_url":"https://github.com/stevenmhunt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"rendr-controller-factory\n========================\n\nProvides a clean and simple way of building Rendr controllers, and minimizes boilerplate code.\n\nInstallation (Coming Soon!)\n------------\n\n`npm install rendr-controller-factory`\n\nUsage\n-----\n\nAt the top of your controller file, start by creating a controller.\n\n```\nvar controller = require('rendr-controller-factory')(module);\n```\n\nNotice how we pass the current file's module object? that's how controller factory knows what your controller is supposed to be called according to Rendr.\n\nNext, register actions to the controller:\n\n```\ncontroller.action('index', function (params, callback) {\n\n    // Yes, the controller factory keeps the correct context around...\n    var app = this.app;\n\n});\n```\n\nAt the end of the file, finish your controller by building it.\n\n```\ncontroller.build();\n```\n\nSince the controller factory already has a reference to the module object, it handles the export registration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenmhunt%2Frendr-controller-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenmhunt%2Frendr-controller-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenmhunt%2Frendr-controller-factory/lists"}