{"id":21013761,"url":"https://github.com/pyro2927/objctpl","last_synced_at":"2025-07-10T17:33:13.288Z","repository":{"id":66588262,"uuid":"961166","full_name":"pyro2927/ObjCtpl","owner":"pyro2927","description":"Simple template engine for Objective-C","archived":false,"fork":false,"pushed_at":"2011-03-24T19:41:34.000Z","size":132,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-13T16:21:37.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/pyro2927.png","metadata":{"files":{"readme":"README","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":"2010-10-04T17:14:50.000Z","updated_at":"2014-01-13T23:59:38.000Z","dependencies_parsed_at":"2023-02-20T07:05:20.918Z","dependency_job_id":null,"html_url":"https://github.com/pyro2927/ObjCtpl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pyro2927/ObjCtpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FObjCtpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FObjCtpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FObjCtpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FObjCtpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyro2927","download_url":"https://codeload.github.com/pyro2927/ObjCtpl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FObjCtpl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619577,"owners_count":23638475,"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-19T09:44:07.001Z","updated_at":"2025-07-10T17:33:08.279Z","avatar_url":"https://github.com/pyro2927.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":" _____   __           ____     __            ___      \n/\\  __`\\/\\ \\       __/\\  _`\\  /\\ \\__        /\\_ \\     \n\\ \\ \\/\\ \\ \\ \\____ /\\_\\ \\ \\/\\_\\\\ \\ ,_\\  _____\\//\\ \\    \n \\ \\ \\ \\ \\ \\ '__`\\\\/\\ \\ \\ \\/_/_\\ \\ \\/ /\\ '__`\\\\ \\ \\   \n  \\ \\ \\_\\ \\ \\ \\L\\ \\\\ \\ \\ \\ \\L\\ \\\\ \\ \\_\\ \\ \\L\\ \\\\_\\ \\_ \n   \\ \\_____\\ \\_,__/_\\ \\ \\ \\____/ \\ \\__\\\\ \\ ,__//\\____\\\n    \\/_____/\\/___//\\ \\_\\ \\/___/   \\/__/ \\ \\ \\/ \\/____/\n                  \\ \\____/               \\ \\_\\        \n                   \\/___/                 \\/_/        \n\nThis project attempts to recreate the functionality given by\nJtpl (http://jtpl.sourceforge.net/).\n\nHow to use:\nYou only need the following files in your project to use ObjCtpl:\n* ObjCtplParser (.h and .m)\n* ObjCtplBlock (.h and .m)\n\nMake sure the following is in the file you are going to be parsing with:\n#include ObjCtpl.h\n\nThen setup your instance of the class:\nObjCtplParser *p = [[ObjCtplParser alloc] initWithHTML:HTML_STRING];\n\nNext set your variables:\n[p setVar:@\"WEBSITE\" withValue:@\"www.google.com\"];\n[p setVar:@\"NAME\" withValue:@\"test name\"];\n[p setVar:@\"EMAIL\" withValue:@\"joe@test.com\"]\n\nAnd then parse the blocks:\n[p parse:@\"main.email\"];\n[p parse:@\"main.phone\"];\n[p parse:@\"main.website\"];\n[p parse:@\"main\"];\n\nTo retrieve the completed output, call:\n[p output]\n\nIMPORTANT:  The beginning and end block syntax included in the HTML\ntemplate IS dependant on whitespace.\n\u003c!-- BEGIN: block_name --\u003e\n\u003c!-- END: block_name --\u003e\n\nSearching via regular expressions is only available in iOS 3.2 or higher,\nso to allow more compatability I am not using that function as of now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2Fobjctpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyro2927%2Fobjctpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2Fobjctpl/lists"}