awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
handlebars-lang avatar

handlebars-lang/handlebars.js

0
View on GitHub↗
18,640 stars·2,057 forks·JavaScript·MIT·6 vueshandlebarsjs.com↗

Handlebars.js

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 generation capabilities, including object iteration, recursive partial templates, and whitespace management. It supports both client-side and server-side rendering while providing security measures such as prototype access restrictions and the prevention of remote code execution through property whitelisting.

Features

  • HTML Template Renderers - Generates final HTML markup by merging data contexts with predefined templates.
  • AST-Based Template Parsing - Converts template strings into an abstract syntax tree to analyze structure without immediate execution.
  • Template Compilation - Transforms template strings into executable JavaScript functions to optimize rendering performance.
  • Prototype Pollution Protections - Prevents unauthorized execution of internal methods by restricting access to object prototype properties via a whitelist.
  • Remote Code Execution Mitigations - Hardens the system against exploits by blocking access to class constructors and internal functions within templates.
  • Abstract Syntax Tree Parsers - Transforms template strings into an abstract syntax tree for structured analysis and manipulation.
  • Template Helpers - Provides a system for extending template logic via external JavaScript helper functions.
  • Logic-less Template Engines - Provides a logic-less templating system that separates data from presentation using an extended syntax.
  • Collection Iterators - Iterates over data collections to generate repeated content within the rendered output.
  • HTML Templating Engines - Processes structured templates to generate dynamic HTML for web pages and emails.
  • Template Data Binding - Resolves template variables by traversing data object hierarchies using specified lookup paths.
  • Template Logic - Provides custom helper functions and block expressions to implement specific logic and formatting during rendering.
  • Template Partials - Allows the creation of reusable template fragments that can be dynamically embedded.
  • Precompiled Template Execution - Executes precompiled templates as standalone functions to eliminate parsing overhead during runtime.
  • Template Security Policies - Applies security constraints to prevent injection attacks and prototype pollution with untrusted data.
  • Startup Optimizers - Reduces startup latency by converting templates into executable JavaScript code before runtime.
  • Client-Side Template Rendering - Generates dynamic markup directly in the browser by executing precompiled template functions.
  • Server-Side Template Engines - Renders dynamic application data into HTML templates on the server side.
  • Partial Templates - Supports recursive nesting of reusable template fragments through named identifiers.
  • Templating - Mustache-based templating with helper support.
  • Templating Engines - An extension to the Mustache templating language.

Historique des stars

Graphique de l'historique des stars pour handlebars-lang/handlebars.jsGraphique de l'historique des stars pour handlebars-lang/handlebars.js

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait handlebars-lang/handlebars.js ?

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.

Quelles sont les fonctionnalités principales de handlebars-lang/handlebars.js ?

Les fonctionnalités principales de handlebars-lang/handlebars.js sont : HTML Template Renderers, AST-Based Template Parsing, Template Compilation, Prototype Pollution Protections, Remote Code Execution Mitigations, Abstract Syntax Tree Parsers, Template Helpers, Logic-less Template Engines.

Quelles sont les alternatives open-source à handlebars-lang/handlebars.js ?

Les alternatives open-source à handlebars-lang/handlebars.js incluent : wycats/handlebars.js — Handlebars.js is a JavaScript templating engine used to generate HTML and other text formats by combining static… mde/ejs — EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data… pugjs/pug — Pug is a template engine and compiler that transforms whitespace-sensitive shorthand syntax into standard HTML. It… shopify/liquid — Liquid is a secure template engine and markup language used to generate dynamic HTML or text by combining static… linkedin/dustjs — Dustjs is a JavaScript templating engine and asynchronous template renderer. It functions as an isomorphic HTML… janl/mustache.js — Mustache.js is a logic-less JavaScript templating engine and implementation of the Mustache specification. It merges…

Alternatives open source à Handlebars.js

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Handlebars.js.
  • wycats/handlebars.jsAvatar de wycats

    wycats/handlebars.js

    18,651Voir sur 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
    Voir sur GitHub↗18,651
  • mde/ejsAvatar de mde

    mde/ejs

    8,105Voir sur GitHub↗

    EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data into template files. It functions as both a server-side template processor and a client-side rendering engine, allowing for the creation of dynamic markup in both backend and frontend environments. The engine supports the creation of modular web layouts through partial template inclusion, where smaller reusable components are inserted into parent pages. Users can modify the template syntax by defining custom delimiters to avoid conflicts with other languages. The project cove

    JavaScript
    Voir sur GitHub↗8,105
  • pugjs/pugAvatar de pugjs

    pugjs/pug

    21,850Voir sur GitHub↗

    Pug is a template engine and compiler that transforms whitespace-sensitive shorthand syntax into standard HTML. It functions as both a Node.js template engine for server-side rendering and a browser-side precompiler for client-side templating. The system converts template files into executable JavaScript functions to increase rendering speed. This allows for the generation of full HTML documents by combining dynamic data and logical structures, either on a server or as standalone JavaScript files for execution directly in the browser. The engine manages the translation process through HTML t

    JavaScript
    Voir sur GitHub↗21,850
  • shopify/liquidAvatar de Shopify

    Shopify/liquid

    11,811Voir sur GitHub↗

    Liquid is a secure template engine and markup language used to generate dynamic HTML or text by combining static templates with backend data. It functions as a web template renderer that transforms markup into final output while restricting available logic to prevent arbitrary code execution. The engine focuses on secure markup execution, providing a restricted environment where user-provided templates cannot access sensitive system data. It utilizes a safe evaluation sandbox to ensure that only a predefined set of instructions can be executed. The system includes capabilities for template s

    Ruby
    Voir sur GitHub↗11,811
Voir les 30 alternatives à Handlebars.js→