elm-pages
ShowcaseBlogDocs
  • What is elm-pages?
    • The Backend
    • Route Modules
    • Server-Rendered Routes
    • Pre-Rendered Routes
    • Server-Rendered elm-pages Use Cases
    • Pre-Rendered elm-pages Use Cases
    • Deciding Between Server-Rendered and Pre-Rendered Routes
    • What's Not a Good Fit for elm-pages?
  • Getting Started
    • CLI commands
    • The dev server
  • The elm-pages Philosophy
    • Progressive Enhancement
    • Use the Platform
    • Composable Building Blocks
    • SEO should be easy
    • Let Elm Shine
  • File Structure
    • Route Modules
    • View.elm
    • Effect.elm
    • Shared.elm
    • Site.elm
    • public
    • public/index.js
    • public/style.css
    • elm-pages.config.mjs
  • File-Based Routing
    • Example routes
    • Static Segments
    • Dynamic Segments
    • Special Ending Segments
    • Optional Dynamic Segments
    • Splat Routes
    • Optional Splat Routes
  • Use the Platform
    • URLs
    • Cookies
    • Redirects
    • Forms
  • Route Modules
    • Ports and Flags
      • Avoiding Flash with elm-ui
    • elm-pages Scripts
      • Quick Start
      • Script Folder
      • Running Scripts from Different Directories
      • Adding Command Line Options
      • FatalError's
      • Scaffolding a Route Module
      • Compiling Scripts to an Executable JavaScript File
    • How does elm-pages work?
      • Error Pages
        • Custom Error Types
        • Stateful Error Pages
        • FatalError's
      • The elm-pages Architecture
        • Interaction 1 - Open Page
        • 1a - Resolving data
        • 1b - Rendering the Page
        • 1c - Hydration
        • Interaction 2 - Client-Side Interaction
        • Interaction 3 - Form Submission
        • The Code
      • Adapters
        • Built-in Adapters
        • The Adapter API
        • apiRoutePatterns

      Blog

      The latest elm-pages news and articles.

      Introducing elm-pages 2.0

      This release represents a huge improvement for elm-pages in terms of features, developer experience, and performance.

      August 1st, 2021

      Why Elm is awesome for building a static site framework

      June 25th, 2021

      A is for API - Introducing Static HTTP Requests

      The new StaticHttp API lets you fetch data when your site is built. That lets you remove loading spinners, and even access environment variables.

      December 10th, 2019

      Extensible Markdown Parsing in Pure Elm

      Introducing a new parser that extends your palette with no additional syntax

      October 8th, 2019

      Introducing elm-pages 🚀 - a type-centric static site generator

      Elm is the perfect fit for a static site generator. Learn about some of the features and philosophy behind elm-pages.

      September 24th, 2019