{"id":21502377,"url":"https://github.com/night-codes/pigeon-js","last_synced_at":"2025-03-17T13:40:59.701Z","repository":{"id":83544929,"uuid":"45442410","full_name":"night-codes/pigeon-js","owner":"night-codes","description":"Pigeon is an HTML preprocessor / template engine written in Javascript.","archived":false,"fork":false,"pushed_at":"2015-11-02T22:48:51.000Z","size":300,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T23:32:51.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://avxto.github.io/pigeon-js","language":"JavaScript","has_issues":false,"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/night-codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-03T04:49:48.000Z","updated_at":"2022-08-01T09:05:47.000Z","dependencies_parsed_at":"2023-03-08T01:11:15.132Z","dependency_job_id":null,"html_url":"https://github.com/night-codes/pigeon-js","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/night-codes%2Fpigeon-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fpigeon-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fpigeon-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fpigeon-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/night-codes","download_url":"https://codeload.github.com/night-codes/pigeon-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244043512,"owners_count":20388595,"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-23T18:14:43.220Z","updated_at":"2025-03-17T13:40:59.670Z","avatar_url":"https://github.com/night-codes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pigeon\n[![Build Status](https://travis-ci.org/avxto/pigeon-js.svg)](https://travis-ci.org/avxto/pigeon-js)\n[![Dependency Status](https://david-dm.org/avxto/pigeon-js.svg)](https://david-dm.org/avxto/pigeon-js)\n\nPigeon is an HTML preprocessor / template engine written in Javascript.\n\n# Installation\n```npm install pigeon-js```\n\n# About \nPigeon is an HTML preprocessor. However, you do not need to learn a new language — you can stick to Javascript. Pigeon is an alternative to Absurd's HTML preprocessor.\n\n# Usage \n\n``` javascript\nvar pigeon = require('pigeon-js');\n\nvar data = {\n    content: 'Content'\n};\n\nvar convert = {\n    \n    _: 'html',\n    \n    html: {\n        head: {\n            style: '.example {display: block;}',\n            title: 'My title',\n            script: 'function helloWorld () { console.log(\"Hello World\"); }',\n        },\n\n        body: {\n            '.main#ID': {\n                '.child.child': 'Content',\n                '.anotherchild': 'Content',\n                '.lastchild': data.content\n\n            },\n        },\n    }\n\n};\n\npigeon(convert, function(err, html) {\n    console.log(html);\n});\n```\n\n### Displays \n\n``` html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\n\u003chead\u003e\n    \u003cstyle\u003e\n        .example {\n            display: block;\n        }\n    \u003c/style\u003e\n    \u003ctitle\u003eMy title\u003c/title\u003e\n    \u003cscript\u003e\n        function helloWorld() {\n            console.log(\"Hello World\");\n        }\n    \u003c/script\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n    \u003cdiv id=\"ID\" class=\"main\"\u003e\n        \u003cdiv class=\"child\"\u003eContent\u003c/div\u003e\n        \u003cdiv class=\"anotherchild\"\u003eContent\u003c/div\u003e\n        \u003cdiv class=\"lastchild\"\u003eContent\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/body\u003e\n\n\u003c/html\u003e\n\n```\n\n# Todo\n\n- [ ] Support for YAML (Cleaner syntax, no quotation marks and braces)\n\n- [x] Support same properties\n\n- [ ] Support for attributes other than classes and id's. \n\n# License\nThe MIT License is a free software license originating at the Massachusetts Institute of Technology (MIT). It is a permissive free software license, meaning that it permits reuse within proprietary software provided all copies of the licensed software include a copy of the MIT License terms and the copyright notice.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight-codes%2Fpigeon-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnight-codes%2Fpigeon-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight-codes%2Fpigeon-js/lists"}