{"id":17439625,"url":"https://github.com/jayphelps/hector","last_synced_at":"2025-09-17T16:33:11.844Z","repository":{"id":5765198,"uuid":"6978311","full_name":"jayphelps/hector","owner":"jayphelps","description":"A view markup language and implementation. No more template hell.","archived":false,"fork":false,"pushed_at":"2015-06-13T10:05:26.000Z","size":548,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T17:58:32.870Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jayphelps.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":"2012-12-03T07:31:47.000Z","updated_at":"2015-06-13T10:05:28.000Z","dependencies_parsed_at":"2022-09-18T15:22:30.099Z","dependency_job_id":null,"html_url":"https://github.com/jayphelps/hector","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/jayphelps%2Fhector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fhector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fhector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fhector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayphelps","download_url":"https://codeload.github.com/jayphelps/hector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233408218,"owners_count":18671815,"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-10-17T13:57:37.086Z","updated_at":"2025-09-17T16:33:06.560Z","avatar_url":"https://github.com/jayphelps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hector [![Build Status](https://travis-ci.org/jayphelps/hector.png)](https://travis-ci.org/jayphelps/hector)\n======\nIn progress.\n\n\n### Example\n```groovy\n// This is a valid comment\n/* So is this */\n\ndef LogoView tagName=\"img\" src=\"logo.png\";\n\ndef ButtonView tagName=\"span\" className=\"button-view\" {\n    // Optional content. If a `label` isn't provided,\n    // the \u003cb\u003e will simply be empty.\n    b { $label?; }\n}\n\ndef TopBarView tagName=\"header\" {\n    LogoView;\n    ButtonView {\n        label: \"Click me\";\n    }\n}\n\ndef ContentView style.width=\"960px\" {\n    h1 { $heading; }\n    ButtonView {\n        label: \"I am a button!\";\n    }\n    \u003c#if $items?\u003e\n    ul {\n        \u003c#each $items\u003e\n        li { $name; }\n        \u003c/each\u003e\n    }\n    \u003c/if\u003e\n}\n\ndef HomePageView backgroundColor=\"red\" {\n    TopBarView;\n    ContentView {\n        heading: \"Welcome to the home page!\";\n        items: [\"first\", \"second\", \"third\"];\n    }\n}\n\n// Since we declared the previous views, they are reusable\n\ndef AboutPageView backgroundColor=\"green\" {\n    TopBarView;\n    ContentView {\n        heading: \"Now you are on the About page.\";\n    }\n}\n```\n\n###### Output of a rendered HomePageView instance (JavaScript target)\n```html\n\u003cdiv style=\"background-color: red\"\u003e\n    \u003cheader\u003e\n        \u003cimg src=\"logo.png\"\u003e\n        \u003cspan class=\"button-view\"\u003eClick Me\u003c/span\u003e\n    \u003c/header\u003e\n    \u003cdiv style=\"width: 960px;\"\u003e\n        \u003ch1\u003eWelcome to the home page!\u003c/h1\u003e\n        \u003cspan class=\"button-view\"\u003eI am a button!\u003c/span\u003e\n        \u003cul\u003e\n            \u003cli\u003efirst\u003c/li\u003e\n            \u003cli\u003esecond\u003c/li\u003e\n            \u003cli\u003ethird\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n![](https://ssl.google-analytics.com/__utm.gif?utmwv=5.3.8\u0026utms=6\u0026utmn=1180464769\u0026utmhn=jayphelps.com\u0026utmcs=UTF-8\u0026utmsr=1366x768\u0026utmvp=1366x331\u0026utmsc=24-bit\u0026utmul=en-us\u0026utmje=1\u0026utmfl=11.5%20r31\u0026utmdt=Hector%20Github\u0026utmhid=1114821283\u0026utmr=0\u0026utmp=%2Fhector\u0026utmac=UA-33446752-1\u0026utmcc=__utma%3D221278083.1685971992.1352361675.1354869083.1355292485.11%3B%2B__utmz%3D221278083.1352361675.1.1.utmcsr%3D\u0026utmu=q~)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayphelps%2Fhector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayphelps%2Fhector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayphelps%2Fhector/lists"}