{"id":25352397,"url":"https://github.com/kode-team/salang","last_synced_at":"2025-04-09T00:46:03.834Z","repository":{"id":213211208,"uuid":"733327921","full_name":"kode-team/salang","owner":"kode-team","description":"SaLang :  WebComponent Transpiler using HTML, JS, CSS","archived":false,"fork":false,"pushed_at":"2024-01-08T01:18:47.000Z","size":94,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-14T18:54:04.643Z","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/kode-team.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-19T04:41:39.000Z","updated_at":"2024-05-27T11:01:38.000Z","dependencies_parsed_at":"2023-12-20T14:17:55.289Z","dependency_job_id":"c366b8a7-5bd5-48a6-804f-f7307e9f4624","html_url":"https://github.com/kode-team/salang","commit_stats":null,"previous_names":["kode-team/salang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kode-team%2Fsalang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kode-team%2Fsalang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kode-team%2Fsalang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kode-team%2Fsalang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kode-team","download_url":"https://codeload.github.com/kode-team/salang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247953103,"owners_count":21023945,"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":"2025-02-14T18:54:07.963Z","updated_at":"2025-04-09T00:46:03.807Z","avatar_url":"https://github.com/kode-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaLang Programming Language\n\n## Introduction\n\nSaLang is a new programming language with unique syntax and features, specifically focused on simplifying the development and management of web components.\n\n## Features\n\n- Component-based architecture\n- Concise and clear syntax\n- Optimized for web development\n\n## Installation\n\nInstructions to install SaLang language.\n\n```bash\n\n```\n\n## Usage\n\nBasic usage of the SaLang language.\n\n### Basic Structure\n\n#### Components\n\n```css\n@component MyComponent {\n  // Contents of the component\n}\n```\n\n#### State Management\n\n```css\n@state {\n  counter: 0;\n  isvisible: true;\n}\n```\n\n#### Defining Attributes\n\n```css\n@attribute title: \"Interactive Component\";\n```\n\n#### Styling Components\n\n```css\n@style {\n  .my-class {\n    color: var(primaryColor);\n  }\n}\n```\n\n#### Event Handling\n\n```css\n@event click on .my-button {\n  @js {\n    // Event handling logic\n  }\n}\n```\n\n#### Templating\n\n```css\n@template {\n  div.my-component {\n    \"Hello, world!\"\n  }\n}\n```\n\n#### Full Example\n\n```css\n@component ComplexComponent {\n    @state {\n      items: [];\n      selectedItem: null;\n    }\n\n    @attribute defaultColor: \"blue\";\n\n    @style {\n      .item {\n        color: var(defaultColor);\n        padding: 10px;\n        border: 1px solid black;\n      }\n      .selected {\n        background-color: yellow;\n      }\n    }\n\n    @function selectItem(itemId) {\n      @js {\n        this.selectedItem = this.items.find(item =\u003e item.id === itemId);\n      }\n    }\n\n    @event click on .item {\n      @js {\n        selectItem(var(itemId));\n      }\n    }\n\n    @template {\n      ul {\n        @repeat item in var(items) {\n          li.item(id: \"item-\" var(item.id)) {\n            \"Item: \" var(item.name)\n\n          }\n        }\n      }\n    }\n}\n```\n\n## Contributing\n\nContributions to SaLang are welcome! Please read our [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkode-team%2Fsalang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkode-team%2Fsalang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkode-team%2Fsalang/lists"}