{"id":18496445,"url":"https://github.com/oddbird/cowlick","last_synced_at":"2025-05-14T04:34:11.395Z","repository":{"id":66918481,"uuid":"67880635","full_name":"oddbird/cowlick","owner":"oddbird","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-23T23:26:20.000Z","size":385,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T21:27:41.823Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oddbird.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"oddbird","open_collective":"oddbird-open-source"}},"created_at":"2016-09-10T16:04:28.000Z","updated_at":"2017-01-28T06:56:42.000Z","dependencies_parsed_at":"2023-05-14T01:00:15.411Z","dependency_job_id":null,"html_url":"https://github.com/oddbird/cowlick","commit_stats":{"total_commits":54,"total_committers":5,"mean_commits":10.8,"dds":0.2222222222222222,"last_synced_commit":"c97a26ffc2082e2c75a60614e8e5a5cb6275b288"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fcowlick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fcowlick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fcowlick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fcowlick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddbird","download_url":"https://codeload.github.com/oddbird/cowlick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253285479,"owners_count":21884011,"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-06T13:29:28.633Z","updated_at":"2025-05-14T04:34:11.303Z","avatar_url":"https://github.com/oddbird.png","language":"JavaScript","funding_links":["https://github.com/sponsors/oddbird","https://opencollective.com/oddbird-open-source"],"categories":[],"sub_categories":[],"readme":"cowlick\n=======\n\n_Templating languages don't get the attention they deserve._\n\n![](logos/cowlick-logo.png)\n\nCowlick is an\nHTML templating language,\nimplemented in Javascript —\nand designed to facilitate\nclarity, maintainability, organization,\nand real-time rendering performance\nfor hypertext markup.\n\n\nVision\n------\n\nCowlick is not opinionated about how you write markup,\nor what markup you write, so long as it is valid.\nWe do have very strong opinions\nabout what makes a good templating language:\n\n1. Compiles to abstract DOM objects,\n   that can be diffed and rendered\n   by tools like [React] or [Virtual DOM].\n2. Provides a superset of (strict) HTML,\n   so that well-structured markup\n   is valid Cowlick.\n3. Provides programatic controls\n   (variables, functions, conditionals, loops, etc)\n   that allow for smart templating\n   and organized, reusable components.\n4. Provides a readable markup-style syntax\n   that makes DOM structures clear and maintainable.\n5. Provides a clear differentiation\n   between HTML and non-HTML syntax.\n5. Provides warnings and errors\n   for poorly-structured markup.\n\n[React]: https://facebook.github.io/react/\n[Virtual DOM]: https://github.com/Matt-Esch/virtual-dom\n\n\nInspiration\n-----------\n\nAt this point,\n[Jinja2] (Python) and [Nunjucks] (JS)\nprovide our favorite syntax\nwith clear divisions between HTML\nand template controls.\n\nCompiling to the DOM will require\nmore strictly-formed markup,\nand may require additional controls.\nCowlick is not meant to be a direct port,\nbut will be heavily inspired by Jinja2.\n\nWe are also inspired\nby the language design of [Sass] —\nwhich respects the separation of concerns,\nwhile providing on-demand power-tools\nto users who already understand the core language.\n\n[React] is an inspiring example\nof virtual-DOM diffing and rendering —\nand provides some much-needed food-for-thought\naround component architecture —\nbut JSX does not meet any of our other specifications\nfor well-formed markup templates.\n\n[Jinja2]: http://jinja.pocoo.org/docs/dev/\n[Nunjucks]: https://mozilla.github.io/nunjucks/\n[Sass]: http://sass-lang.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Fcowlick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddbird%2Fcowlick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Fcowlick/lists"}