{"id":18073378,"url":"https://github.com/blakewilliams/straw","last_synced_at":"2025-04-12T05:14:43.123Z","repository":{"id":57668763,"uuid":"50305985","full_name":"BlakeWilliams/straw","owner":"BlakeWilliams","description":"WIP progress Rust -\u003e HTML largely as a learning exercise","archived":false,"fork":false,"pushed_at":"2016-01-31T19:26:46.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T05:14:34.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/BlakeWilliams.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":"2016-01-24T20:14:57.000Z","updated_at":"2023-03-21T23:38:44.000Z","dependencies_parsed_at":"2022-08-27T03:50:32.798Z","dependency_job_id":null,"html_url":"https://github.com/BlakeWilliams/straw","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fstraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fstraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fstraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fstraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlakeWilliams","download_url":"https://codeload.github.com/BlakeWilliams/straw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519556,"owners_count":21117761,"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-31T10:06:40.504Z","updated_at":"2025-04-12T05:14:43.072Z","avatar_url":"https://github.com/BlakeWilliams.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Straw\n\nWork in progress Experimental Rust -\u003e HTML renderer.\n\n## Installation\n\nAdd straw to `Cargo.toml`.\n\n```toml\n[dependencies]\nstraw = \"*\"\n```\n\n## Usage\n\nImport `Element` and `Renderable` and start creating `Element`s.\n\n```rust\nextern crate straw;\n\nuse straw::element::{Element, Renderable}\nuse straw::attribute::Attr;\n\nlet element = Element::new(\"div\", vec![Attr::id(\"main\")], vec![\n  Element::new(\"h1\", vec![], \"Hello\"),\n  Element::new(\"input\", vec![Attr::disabled(true)], \"\"),\n]);\n\nelement.render(); // \u003cdiv id=\"main\"\u003e\u003ch1\u003eHello\u003c/h1\u003e\u003cinput disabled\u003e\u003c/input\u003e\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakewilliams%2Fstraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakewilliams%2Fstraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakewilliams%2Fstraw/lists"}