A web application template built with Gleam and Lustre, featuring client-side routing.
Make sure you have Gleam installed on your system.
- Clone this repository:
git clone <repository-url>
cd lustre-ssg-template- Install dependencies:
gleam deps download- Start the development server:
gleam run -m lustre/dev startThe application will be available at http://localhost:1234
This template comes with Tailwind CSS pre-configured. You can use Tailwind utility classes directly in your components:
html.div([
attribute.class("bg-blue-500 text-white p-4 rounded-lg shadow-md")
], [
html.text("Styled with Tailwind!")
])Build a minified production bundle:
gleam run -m lustre/dev build app --minifyThe built files will be available in the priv/static/ directory.
gleam deps download- Install dependenciesgleam run -m lustre/dev start- Start development servergleam run -m lustre/dev build app- Build for developmentgleam run -m lustre/dev build app --minify- Build for production
This template is available under the MIT License. See the LICENSE file for details.