A library for easily creating and manipulating HTML templates. 💖
-
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.
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!
- 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.
- The render() method returns the rendered template as a string.
- 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
- Facebook : Oned Ionys
- Instagram : @onedionys
- Twitter : @onedionys
- LinkedIn : @onedionys
- Copyright © 2024 One Dionys
- One Dionys - Template Engine is an open source project licensed under the MIT license
Love One Dionys - Template Engine? Support this project by donating or sharing with others in need.
Made with ❤️ One Dionys