mustache/mustache

Logic-less Ruby templates.

View on GitHub ↗Jump to charts ↓

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 2 hours ago
Added to GitGenius on September 22nd, 2026
Created on September 24th, 2009
Open Issues & Pull Requests: 44 (+0)
GitHub issues: Enabled
Number of forks: 275
Total Stargazers: 3,085 (+0)
Total Subscribers: 64 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 38.2 hours
Mean response time: 559.1 days
90th percentile: 3717.1 days
Tracked items: 9

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 721 days
Stale 30+ days: 3
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (1)
  • ruby19 (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Mustache is a logic-less template engine for Ruby that enforces strict separation between view logic and presentation markup.

Mustache solves the problem of tangled logic and markup by splitting views into two distinct parts: a Ruby class containing all application logic and an HTML template containing only markup that references view methods. The template language itself has no conditional statements or loops—instead, it delegates these concerns entirely to the view class. This approach makes templates simpler to reason about, easier to test, and reduces the cognitive load when working on presentation layers. The tool supports both class-based views and dictionary-style data passing, giving developers flexibility in how they structure their code.

Mustache suits projects where developers value clean separation of concerns and want to avoid embedding logic in templates. It works well for teams that prefer explicit, testable view logic over implicit template helpers. The tool is framework-agnostic and can be integrated into any Ruby application. The README emphasizes that Mustache is a replacement for view systems like ERB or HAML, positioning it as an alternative for developers who dislike mixing Ruby, HTML, or JavaScript in the same file.

The project maintains a stable, minimal codebase focused on the core template rendering functionality. Development activity is sparse, with infrequent commits and minimal churn, reflecting a mature tool that has reached a stable state. The project's simplicity and lack of active feature development suggest it prioritizes reliability and backward compatibility over rapid iteration.