{"repo":"srid/ema-template","free":true,"listed":false,"github":"https://github.com/srid/ema-template","clone":"git clone https://github.com/srid/ema-template.git","description":"Template repo for Ema static site generator","language":"CSS","stars":26,"topics":["haskell","static-site-generator","template"],"license":"AGPL-3.0","category":"docs-static-sites","readme_excerpt":"Ema Template A very simple example Ema site that is based on Lucid2 & TailwindCSS 3. Use it to bootstrap your next static site using Ema. The generated HTML site can be previewed here: https://srid.github.io/ema-template/ Getting Started To develop with full IDE support in Visual Studio Code, follow these steps: - Install Nix - And setup direnv - Run nix develop -i -c haskell-language-server to sanity check your environment - Open the repository as single-folder workspace in Visual Studio Code - Install the recommended extensions - Active the direnv environment - Press Ctrl+Shift+B 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/ All but the final step need to be done only once. Check the Ema tutorial next. Note - This project uses 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. - Tailwind CSS is compiled, alongside Ghcid, via foreman (see flake.nix ) - 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 ) - Configuration: - 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) - To add/remove Haskell depende","default_branch":null,"files":null,"tree":[],"storefront":"/r/srid","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/srid/ema-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}