{"id":13458108,"url":"https://github.com/onionhammer/nim-templates","last_synced_at":"2025-05-15T16:33:45.237Z","repository":{"id":17396015,"uuid":"20168444","full_name":"onionhammer/nim-templates","owner":"onionhammer","description":"A simple string templating library for Nim","archived":false,"fork":false,"pushed_at":"2019-10-20T14:42:58.000Z","size":24,"stargazers_count":93,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T03:32:21.067Z","etag":null,"topics":["css","html","nim","template"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"leucos/ansible-rbenv-playbook","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onionhammer.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":"2014-05-25T23:07:53.000Z","updated_at":"2024-08-18T06:26:44.000Z","dependencies_parsed_at":"2022-08-28T00:13:00.591Z","dependency_job_id":null,"html_url":"https://github.com/onionhammer/nim-templates","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/onionhammer%2Fnim-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onionhammer%2Fnim-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onionhammer%2Fnim-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onionhammer%2Fnim-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onionhammer","download_url":"https://codeload.github.com/onionhammer/nim-templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225365363,"owners_count":17462961,"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":["css","html","nim","template"],"created_at":"2024-07-31T09:00:44.788Z","updated_at":"2024-11-19T13:51:31.324Z","avatar_url":"https://github.com/onionhammer.png","language":"Nim","funding_links":[],"categories":["Template engine","Web"],"sub_categories":["Template Engines"],"readme":"nim-templates\n=============\n\nA simple string templating library for Nim\n\nUsage\n-----\nImport the 'templates' library at the top of your nim module, and use the syntax:\n\n```nim\nimport templates\n\nproc testPage (name: string): string = tmpli html\"\"\"\n    \u003cbody\u003e\n        \u003ch1\u003eHello $name!\u003c/h1\u003e\n    \u003c/body\u003e\n    \"\"\"\n\necho testPage(\"Charlie\")\n```\n\nSyntax\n------\nThe templates syntax supports $for and $while loops, $if/$elif/$else, multi-line statements, $case statements, procedure calls, etc. Look at the tests.nim file for more examples.\n\n\nSupported Syntaxes\n------------------\nRealistically any well-structured syntax can be used as a template, but the NimLime SublimeText plugin supports syntax highlighting for the following template types;\n\n- HTML / XML\n- CSS\n- Javascript\n- GLSL\n- RST\n- Markdown\n\nThese can be invoked as follows:\n\n```nim\ntmpli xml\"\"\" ... \"\"\"\ntmpli css\"\"\" ... \"\"\"\n# etc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonionhammer%2Fnim-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonionhammer%2Fnim-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonionhammer%2Fnim-templates/lists"}