{"id":28184447,"url":"https://github.com/byteface/nom","last_synced_at":"2025-06-24T15:34:05.198Z","repository":{"id":44001228,"uuid":"511874847","full_name":"byteface/nom","owner":"byteface","description":"nom is a nim dom","archived":false,"fork":false,"pushed_at":"2022-07-08T14:44:07.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T04:52:28.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nim","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/byteface.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":"2022-07-08T11:43:42.000Z","updated_at":"2022-07-08T11:46:15.000Z","dependencies_parsed_at":"2022-09-04T06:04:36.269Z","dependency_job_id":null,"html_url":"https://github.com/byteface/nom","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/byteface%2Fnom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fnom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fnom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fnom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteface","download_url":"https://codeload.github.com/byteface/nom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254470931,"owners_count":22076588,"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-05-16T05:15:27.580Z","updated_at":"2025-05-16T05:15:28.178Z","avatar_url":"https://github.com/byteface.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nom: A Nim DOM\n\nNom is a Nim DOM!\n\n# About\n\nTrying nim for the first time. Created a small project to play around with it.\n\nNom lets you create html templates direclty in nim-lang.\n\n```\necho html(body(Div(h1(\"Hello World!\")), id=\"page\", class=\"greeting\"))\n```\n\nUse the $ to render the dom to a string. i.e.\n\n```\nvar document = html(body(Div(h1(\"Hello World!\")), id=\"page\", class=\"greeting\"))\nresp = $document\n```\n\n# Setup\n\nLooks like you install 'choosenim'\n\nhttps://nim-lang.org/install_unix.html\n\nThen run ```choosenim 1.6.0```\n\n# Compiling\n\nTo compile the DOM do...\n\n```\nnimble build\n```\n\n# Running tests\n\nTo run these tests, execute...\n\n```\nnimble test\n```\n\n# Running examples\n\nSee examples folder.\n\ntbc\n\n# Installing\n\nI think it will be something like...\n\n```\nnimble install https://github.com/byteface/nom\n```\n\n# Gotchas\n\nThe 'div' keyword in nim is already a binary division operator so our div requires an uppercase D not to clash. i.e. ```Div('some content')```\n\nalternatively it appears you can wrap it backticks i.e. ```\\`div\\`('some test')```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fnom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteface%2Fnom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fnom/lists"}