Socket
Socket
Sign inDemoInstall

onedionys-template-engine

Package Overview
Dependencies
132
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    onedionys-template-engine

One Dionys (Template Engine) - A library for easily creating and manipulating HTML templates.


Version published
Weekly downloads
493
increased by16333.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Welcome to One Dionys - Template Engine! 👋

A library for easily creating and manipulating HTML templates. 💖

💾 Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

🎯 How To Use

Example Syntax
const TemplateEngine = require('./src/templateEngine');

// Define your template
const template = 'Hello {{ name }}!';

// Create an instance of TemplateEngine with your template
const engine = new TemplateEngine(template);

// Define your data
const data = { name: 'World' };

// Render the template with the data
const result = engine.render(data);
console.log(result); // Output: Hello World!
Explanation
  • The TemplateEngine class provides a way to render templates with dynamic data. It uses double curly braces ({{ }}) as placeholders for variables in the template. When you call the render() method with a data object, it replaces the placeholders with corresponding values from the data object.
Return Value
  • The render() method returns the rendered template as a string.

📆 Release Date

  • v1.0.0 : 07 March 2024
  • v1.0.1 : 11 March 2024
  • v4.0.0 : 11 March 2024
  • v4.0.1 : 13 March 2024
  • v4.0.2 : 18 March 2024
  • v5.0.0 : 31 March 2024

🧑 Author

  • Facebook : Oned Ionys
  • Instagram : @onedionys
  • Twitter : @onedionys
  • LinkedIn : @onedionys

📝 License

  • Copyright © 2024 One Dionys
  • One Dionys - Template Engine is an open source project licensed under the MIT license

☕️ Suppport & Donation

Love One Dionys - Template Engine? Support this project by donating or sharing with others in need.

Made with ❤️ One Dionys

Keywords

FAQs

Last updated on 31 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc