awesome-repositories.com
Blog
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
·
tj avatar

tj/ejs

0
View on GitHub↗
4,461 stars·496 forks·JavaScript·5 vues

Ejs

ejs est un moteur de template JavaScript embarqué pour Node.js qui génère du HTML et d'autres formats textuels en intégrant de la logique JavaScript dans les templates. Il fonctionne comme un moteur de rendu côté serveur et un processeur de template HTML qui fusionne le balisage statique avec des données dynamiques.

Le système opère comme une bibliothèque de templates compilés, convertissant les templates en fonctions JavaScript pour permettre un rendu mis en cache et une exécution plus rapide. Il inclut une sécurité intégrée pour prévenir les attaques XSS en échappant automatiquement les entités HTML et les caractères spéciaux durant le processus de rendu.

Le moteur supporte une conception modulaire via l'utilisation de templates partiels, permettant l'insertion de composants d'interface réutilisables dans des structures de page plus larges. Il offre également la possibilité de définir des délimiteurs personnalisés pour éviter les conflits de syntaxe au sein des documents.

Features

  • Server-Side Dynamic Page Generation - Functions as a server-side engine that merges JavaScript data with templates to instantiate dynamic web pages.
  • HTML Content Renderers - Generates HTML output by combining dynamic data with reusable layouts and modular components.
  • Template-Based Code Generators - Converts template syntax into executable JavaScript functions to generate final rendered strings.
  • Template Compilation - Converts template strings into executable JavaScript functions to enable high-performance interpolation and cached execution.
  • HTML Entity Escaping - Automatically transforms dynamic data into safe HTML entities to prevent cross-site scripting attacks.
  • Output Escaping - Provides automatic encoding of dynamic data into safe formats to prevent cross-site scripting attacks during HTML rendering.
  • Reusable Template Fragments - Enables the use of shareable template fragments across multiple layouts to reduce redundancy.
  • Escaping Utilities - Automatically encodes dynamic text content to prevent malicious script injection and XSS.
  • HTML Template Renderers - Merges data dictionaries with predefined templates to generate final HTML strings for browser rendering.
  • Reusable Components - Supports the use of partial templates to create modular, reusable interface components within larger layouts.
  • Partial Templates - Supports reusable template fragments that can be nested and resolved by name at runtime.
  • Secure Renderers - Prevents cross-site scripting by automatically escaping special characters when rendering data into HTML.
  • JavaScript Template Engines - Provides a JavaScript template engine for Node.js that transforms template strings into executable functions for text generation.
  • Server-Side Rendering - Transforms dynamic data and logic into static HTML strings on the server before sending them to the client.
  • Template Data Merging - Combines compiled templates from the filesystem with data objects to produce a final output string.
  • Data Transformation Filters - Allows transforming data using formatting modifiers before rendering the final content.
  • Template Caches - Implements in-memory caching of precompiled template functions to increase rendering speed and reduce CPU overhead.
  • Template Compilation Caches - Stores precompiled JavaScript functions in memory to increase rendering speed for repeated requests.
  • Compiled Caches - Stores templates compiled into executable code in memory to avoid redundant parsing.
  • Precompiled Template Execution - Converts templates into standalone JavaScript functions for faster execution by removing the need for repeated parsing.
  • Automatic Template Escaping - Automatically encodes dynamic values in templates to prevent script injection during HTML processing.
  • Recursive Template Resolution - Resolves nested template fragments by recursively executing associated functions until a final string is produced.
  • Template Expression Parsing - Uses regular expressions to identify embedded logic and static text within template strings.
  • Data Transformation Filters - Provides functions within templates to transform raw data into specific formats before output.
  • Node.js Frameworks and Tools - Embedded JavaScript template engine.

Historique des stars

Graphique de l'historique des stars pour tj/ejsGraphique de l'historique des stars pour tj/ejs

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 tj/ejs ?

ejs est un moteur de template JavaScript embarqué pour Node.js qui génère du HTML et d'autres formats textuels en intégrant de la logique JavaScript dans les templates. Il fonctionne comme un moteur de rendu côté serveur et un processeur de template HTML qui fusionne le balisage statique avec des données dynamiques.

Quelles sont les fonctionnalités principales de tj/ejs ?

Les fonctionnalités principales de tj/ejs sont : Server-Side Dynamic Page Generation, HTML Content Renderers, Template-Based Code Generators, Template Compilation, HTML Entity Escaping, Output Escaping, Reusable Template Fragments, Escaping Utilities.

Quelles sont les alternatives open-source à tj/ejs ?

Les alternatives open-source à tj/ejs incluent : twigphp/twig — Twig is a PHP template engine and compiled rendering library designed to separate business logic from presentation. It… mde/ejs — EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data… handlebars-lang/handlebars.js — Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by… wycats/handlebars.js — Handlebars.js is a JavaScript templating engine used to generate HTML and other text formats by combining static… olado/dot — doT is a compiled JavaScript template engine and rendering system used to generate dynamic text and HTML for both… yanhaijing/template.js — Template.js is a JavaScript template engine designed for parsing and rendering dynamic HTML content in both browser…

Alternatives open source à Ejs

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Ejs.
  • twigphp/twigAvatar de twigphp

    twigphp/Twig

    8,363Voir sur GitHub↗

    Twig is a PHP template engine and compiled rendering library designed to separate business logic from presentation. It functions as a secure template language that generates HTML output by combining dynamic data with reusable layouts. The system emphasizes security through a focus on preventing cross-site scripting attacks via automatic output escaping and content sanitization. To ensure execution efficiency, it compiles templates into optimized PHP code and utilizes a caching mechanism to bypass parsing on subsequent requests. The engine provides comprehensive tools for template composition

    PHPphptemplate-enginetemplate-language
    Voir sur GitHub↗8,363
  • 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
  • handlebars-lang/handlebars.jsAvatar de handlebars-lang

    handlebars-lang/handlebars.js

    18,640Voir sur 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
    Voir sur GitHub↗18,640
  • 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
  • Voir les 30 alternatives à Ejs→