{"id":20595716,"url":"https://github.com/hilmanski/mini-ssg","last_synced_at":"2025-04-14T23:43:46.332Z","repository":{"id":46075173,"uuid":"383052569","full_name":"hilmanski/mini-SSG","owner":"hilmanski","description":"Mini SSG (static site generator) with minimal and beautiful syntax","archived":false,"fork":false,"pushed_at":"2023-10-10T02:57:57.000Z","size":64,"stargazers_count":67,"open_issues_count":8,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T23:43:39.433Z","etag":null,"topics":["html","ssg"],"latest_commit_sha":null,"homepage":"https://minissg.vercel.app/","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/hilmanski.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":"2021-07-05T07:28:46.000Z","updated_at":"2025-03-06T03:31:32.000Z","dependencies_parsed_at":"2024-01-06T14:50:09.094Z","dependency_job_id":null,"html_url":"https://github.com/hilmanski/mini-SSG","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.0625,"last_synced_commit":"4efbeb2ed7a420f6695acdb2eba6833494b5c76b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilmanski%2Fmini-SSG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilmanski%2Fmini-SSG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilmanski%2Fmini-SSG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilmanski%2Fmini-SSG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hilmanski","download_url":"https://codeload.github.com/hilmanski/mini-SSG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981259,"owners_count":21193143,"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":["html","ssg"],"created_at":"2024-11-16T08:13:55.936Z","updated_at":"2025-04-14T23:43:46.314Z","avatar_url":"https://github.com/hilmanski.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Status\nCurrently, there's no plan to updating this project in the near future. \n\nTake a look other similar project:\n- [Static by DevDojo](https://github.com/thedevdojo/static)\n\n# Mini SSG\nSimple static site generator, to prevent you write DRY HTML files with minimal syntax  \nBuilt with Nodejs  \nInspired by Laravel Blade Template and Sergey.cool SSG\n\n**Update/Log**  \nv 0.2.2: Add livereload, running npm run dev, will auto reload browser when changes occured  \nv 0.2.1: Bug fixes: section value include \"comma sign\" allowed  \nv 0.1.9: All static assets live in \"dev/static\".\n\n## Use Case\nFor someone who works with a lot of html files and many reuse components (header, footer, etc.) or want to use general layout\n\n## Why and How to use it\nCheck out [mini SSG website](https://minissg.vercel.app)\n\n## Syntax preview\n\nImport page\n```html\n@import(header)\t\t\n\n\u003cp\u003eYour awesome content\u003c/p\u003e\n\n@import(footer)\n```\n\nUse general layout\n```html\n@layout(base) \n\n@section(title, Your Page Title)\n\n@section(main)\n\u003cmain\u003e\n\tHey.. meet your awesome content\n\u003c/main\u003e\n@endsection\n```\n\nHow layout looks like\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"UTF-8\"\u003e\n\t\u003ctitle\u003e@attach(title)\u003c/title\u003e \u003c!-- render your title above --\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t@attach(main) \u003c!-- render everything from section above --\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nLayout can include multiple imports\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"UTF-8\"\u003e\n\t\u003ctitle\u003e@attach(title)\u003c/title\u003e \u003c!-- render your title above --\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t@import(header)\n\t@attach(main) \u003c!-- render everything from section above --\u003e\n\t@import(footer)\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nNeed components? don't worry!\n```html\n\n\u003ch2\u003eOther stuff\u003c/h2\u003e\n\n@component(story)\n\t@slot(fullDiv)\n\t\t\u003cp\u003e😀 I'm slot with name text\u003c/p\u003e\n\t\t\u003cp\u003eI can be very complex element\u003c/p\u003e\n\t@endslot\n\n\t@slot(textOnly)\n\t\tI can also be just text like this\n\t@endslot\n@endcomponent\n```\n\nHow your component looks like\n```html\n\u003cdiv\u003e\n\t\u003cdiv class=\"flex is-space-around\"\u003e\n\t\t\u003cdiv class=\"someClass\"\u003e\n\t\t\t@attach(fullDiv)\n\t\t\u003c/div\u003e\n\n\t\t\u003cp\u003e@attach(textOnly)\u003c/p\u003e\n\t\u003c/div\u003e\t\n\u003c/div\u003e\n```\n\nIf attach need a default value as fallback\n```html\n\u003ctitle\u003e@attach(title, My default title)\u003c/title\u003e\n```\n\nAll static assets or files like CSS, javascript, image and stuff can live in \"static\" folder  \n\nThat's it! learn more at [mini SSG website](https://minissg.vercel.app/tour)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhilmanski%2Fmini-ssg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhilmanski%2Fmini-ssg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhilmanski%2Fmini-ssg/lists"}