awesome-repositories.comCategoriesBlog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
twitter avatar

twitter/hogan.js

0
View on GitHub↗
5,124 stars·427 forks·JavaScript·Apache-2.0·18 viewstwitter.github.io/hogan.js↗

Hogan.js

hogan.js is a logic-less template compiler and Mustache templating engine. It transforms static templates into executable JavaScript functions to generate data-driven strings without using conditional or looping logic.

The system focuses on precompilation to eliminate parsing overhead during runtime execution. This includes a precompiled template library and a command line interface for converting template files into optimized JavaScript.

The engine handles dynamic content generation through template compilation and data rendering. It supports reusable UI fragments via partials and allows for customizable parsing delimiters.

Features

  • Mustache Template Rendering - Merges data objects with Mustache templates to generate final string output for web pages or documents.
  • Dynamic Text Generation - Generates dynamic content by replacing template placeholders with data-driven values.
  • Template Compilation - Transforms Mustache template strings into executable JavaScript functions for high-performance interpolation.
  • Context-Aware Variable Resolution - Implements recursive lookups to retrieve values from data objects based on hierarchical template context.
  • Build-Time Precompilation - Converts templates into standalone JavaScript functions during a build step to eliminate runtime parsing.
  • Client-Side Template Rendering - Renders dynamic markup directly in the browser using data-bound Mustache templates.
  • Logic-less Template Engines - Provides a templating engine that maps dynamic content into structured output without embedded logic.
  • Template Data Merging - Merges compiled templates with data objects and partials to produce the final output string.
  • Template Partials - Supports the inclusion of external markup fragments as partials to enable modular template composition.
  • Delimiter Parsing Rules - Provides configurable start and end characters to define paired delimiters for template tags.
  • Precompilation Command Line Interfaces - Ships a command line interface for precompiling template files into JavaScript for improved performance.
  • Template Engines - Compiler for the Mustache template language.
  • Templating Engines - A compiler for the Mustache templating language.

Star history

Star history chart for twitter/hogan.jsStar history chart for twitter/hogan.js

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does twitter/hogan.js do?

hogan.js is a logic-less template compiler and Mustache templating engine. It transforms static templates into executable JavaScript functions to generate data-driven strings without using conditional or looping logic.

What are the main features of twitter/hogan.js?

The main features of twitter/hogan.js are: Mustache Template Rendering, Dynamic Text Generation, Template Compilation, Context-Aware Variable Resolution, Build-Time Precompilation, Client-Side Template Rendering, Logic-less Template Engines, Template Data Merging.

What are some open-source alternatives to twitter/hogan.js?

Open-source alternatives to twitter/hogan.js include: linkedin/dustjs — Dustjs is a JavaScript templating engine and asynchronous template renderer. It functions as an isomorphic HTML… olado/dot — doT is a compiled JavaScript template engine and rendering system used to generate dynamic text and HTML for both… wycats/handlebars.js — Handlebars.js is a JavaScript templating engine used to generate HTML and other text formats by combining static… handlebars-lang/handlebars.js — Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by… lunet-io/scriban — Scriban is a .NET text templating engine and embedded scripting language used for dynamic text generation. It… mde/ejs — EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data…

Open-source alternatives to Hogan.js

Similar open-source projects, ranked by how many features they share with Hogan.js.
  • linkedin/dustjslinkedin avatar

    linkedin/dustjs

    2,913View on GitHub↗

    Dustjs is a JavaScript templating engine and asynchronous template renderer. It functions as an isomorphic HTML generator, producing consistent output across both client and server environments. The system employs a logic-less template syntax to separate presentation from business logic, utilizing simple tags for iteration and conditional checks. It supports asynchronous data resolution, allowing the rendering process to pause and resume as external data sources respond. The engine provides capabilities for dynamic HTML generation, server-side rendering, and client-side templating. It utiliz

    JavaScript
    View on GitHub↗2,913
  • olado/dotolado avatar

    olado/doT

    5,043View on GitHub↗

    doT is a compiled JavaScript template engine and rendering system used to generate dynamic text and HTML for both browser-based interfaces and Node.js server-side environments. It transforms template strings into executable JavaScript functions to produce text output across different runtime environments. The system focuses on pre-compiling template source files into standalone JavaScript modules at build time. This process eliminates runtime compilation overhead, increases execution speed, and prevents malicious code injection. The engine supports logic-based interpolation using conditional

    JavaScript
    View on GitHub↗5,043
  • wycats/handlebars.jswycats avatar

    wycats/handlebars.js

    18,651View on GitHub↗

    Handlebars.js is a JavaScript templating engine used to generate HTML and other text formats by combining static templates with dynamic data. It functions as a logic-less template engine, separating presentation from business logic by restricting the complexity of expressions within templates. The project includes a precompiled template compiler that converts template strings into executable JavaScript functions. This mechanism reduces runtime overhead and improves rendering performance by shifting the compilation process to a build step. The engine provides a custom helper framework for ext

    JavaScript
    View on GitHub↗18,651
  • handlebars-lang/handlebars.jshandlebars-lang avatar

    handlebars-lang/handlebars.js

    18,640View on GitHub↗

    Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by merging data objects with templates. It utilizes an abstract syntax tree parser to transform template strings into executable JavaScript functions. The system separates data from presentation by restricting complex logic to external helper functions rather than the template itself. It features a precompiled template compiler that converts templates into functions before deployment to increase execution speed and reduce startup latency. The engine covers a broad range of content ge

    JavaScripthandlebarsmustachetemplates
    View on GitHub↗18,640
See all 30 alternatives to Hogan.js→