Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Static site generator which is semi-compatible with Jekyll, faster, with lazy evaluation and other features.
Glim is a Ruby-based static site generator that is semi-compatible with Jekyll but designed for speed, adding lazy evaluation, parallel builds, and generalized collections.
Glim is a static site generator installed via RubyGems (gem install glim) that accepts Markdown content and Liquid templates as input and produces a static HTML site in a _site directory. It is semi-compatible with Jekyll, meaning existing Jekyll projects can run with Glim while gaining new capabilities. Its manual is hosted at macromates.com/glim.
serve — Running serve generates only the pages the browser requests, so previews appear instantly without building the whole site; errors render in the browser and support automatic reload.build uses multiple tasks to generate content concurrently, reducing build time._posts.example.org and blog.example.org), sharing resources and cross-linking via the link tag.digest permalink variable — Inserting digest in a permalink makes the URL change whenever content updates, guaranteeing cache invalidation for CSS and JavaScript.url property._data and _config.yml, triggers a browser reload by flushing the relevant cache.digest variable._site directory during development.link tag.source_dir to keep content in a subdirectory, and paginate collections or data structures easily.With serve, Glim lazily evaluates pages on browser request, so the first request may trigger generation while subsequent requests are served from cache; any file change flushes the cache and reloads the browser. With build, Glim runs multiple parallel tasks to generate the full site without writing temporary artifacts.
_site, parallelized builds, generalized collections, multi-domain support, extensible pipeline, built-in tag/category pages, and digest-based cache invalidation.Glim is semi-compatible with Jekyll, covering the common content structure, Liquid templates, and Markdown processing. Specialized Jekyll plugins may not work directly, so evaluate them before migrating.
serve command achieve instant previews?serve uses lazy evaluation: it generates only the page requested by the browser at that moment. Because there is no full build, previews start immediately, and the _site folder stays free of development artifacts like injected reload scripts or localhost URLs.
digest variable used for?The digest variable, when placed in a permalink, produces a URL that changes whenever the page content updates. This guarantees cache invalidation, which is especially useful for CSS and JavaScript assets.
Yes. A single Glim project can generate sites for multiple domains, such as example.org and blog.example.org. Resources are shared, and the link tag enables cross-linking between the domains.
Glim is distributed as a RubyGem. Install it by running gem install glim in your terminal. The full Glim Manual is available at macromates.com/glim.
