{"id":13687173,"url":"https://github.com/srid/ema-template","last_synced_at":"2025-03-16T14:31:23.672Z","repository":{"id":41117626,"uuid":"361899555","full_name":"srid/ema-template","owner":"srid","description":"Template repo for Ema static site generator","archived":false,"fork":false,"pushed_at":"2025-01-03T18:36:35.000Z","size":1086,"stargazers_count":27,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T10:59:10.758Z","etag":null,"topics":["haskell","static-site-generator","template"],"latest_commit_sha":null,"homepage":"https://srid.github.io/ema-template/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srid.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-26T21:32:52.000Z","updated_at":"2025-01-10T17:33:42.000Z","dependencies_parsed_at":"2023-11-16T16:41:49.048Z","dependency_job_id":"4e68d328-ea7a-4eaa-aeee-531acf53d784","html_url":"https://github.com/srid/ema-template","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fema-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fema-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fema-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fema-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srid","download_url":"https://codeload.github.com/srid/ema-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243819038,"owners_count":20352807,"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":["haskell","static-site-generator","template"],"created_at":"2024-08-02T15:00:49.881Z","updated_at":"2025-03-16T14:31:23.659Z","avatar_url":"https://github.com/srid.png","language":"Haskell","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# Ema Template\n\nA very simple example [Ema](https://ema.srid.ca/) site that is based on Lucid2 \u0026 TailwindCSS 3. Use it to bootstrap your next static site using Ema.\n\nThe generated HTML site can be previewed here: https://srid.github.io/ema-template/\n\n## Getting Started\n\nTo develop with full IDE support in Visual Studio Code, follow these steps:\n\n- [Install Nix](https://nixos.asia/en/install)\n  - And [setup direnv](https://nixos.asia/en/direnv)\n- Run `nix develop -i -c haskell-language-server` to sanity check your environment \n- Open the repository [as single-folder workspace](https://code.visualstudio.com/docs/editor/workspaces#_singlefolder-workspaces) in Visual Studio Code\n    - Install the recommended extensions\n    - Active the direnv environment\n- Press \u003ckbd\u003eCtrl+Shift+B\u003c/kbd\u003e in VSCode, or run `nix develop -c just run` in terminal (`just run` if direnv is already active), to launch the Ema dev server, and navigate to http://localhost:9001/\n\nAll but the final step need to be done only once. Check [the Ema tutorial](https://ema.srid.ca/tutorial) next.\n\n## Note\n\n- This project uses [relude](https://github.com/kowainik/relude) as its prelude, as well as Tailwind+Lucid as CSS utility and HTML DSL. Even though the author highly recommends them, you are of course free to swap them out for the library of your choice.\n  - Tailwind CSS is compiled, alongside Ghcid, via foreman (see `flake.nix`)\n- As a first step to using this template, rename your project using https://srid.ca/haskell-template/start#rename-the-project (use `ema-template` in place of `haskell-template`)\n- Configuration:\n  - To change the port (or the Ema CLI arguments, used by `nix develop -c just run`), see `./.ghcid` (if you leave out `--port` a random port will be used)\n  - To add/remove Haskell dependencies, see https://community.flake.parts/haskell-flake/dependency\n- To generate the site, run:\n  ```sh\n  nix build .#site\n  # Alternatively:\n  # \u003e mkdir ../output \n  # \u003e nix run . -- --base-url=/ gen ../output\n  ```\n\n## Non-Nix workflow\n\nTo use this repository without Nix (such as with plain Cabal or Stack) you need to have the following installed manually:\n\n- ghcid\n- [tailwind runner](https://hackage.haskell.org/package/tailwind) along with [tailwind CLI](https://tailwindcss.com/docs/installation)\n- [foreman](http://ddollar.github.io/foreman/) (or one of its rewrites)\n- Add a `Procfile`; see flake.nix to determine what should go in its `Procfile`\n\nOnce all the above are installed and setup, run `foreman start` to start the Ema live server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fema-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrid%2Fema-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fema-template/lists"}