Skip to content

Partivo/node-template-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@partivo/template-engine

Simple Template Engine - Node.js

Example Code

JavaScript File

import templateEngine from '@partivo/template-engine';
const page = templateEngine.renderFile('/usr/local/bin/template/404.html', {
  hostname: "partivo.net"
}); // 404.html

HTML File

<html>
    <head>
        <title>404 Not Found</title>
    </head>
    <body>
        <center><h1>404 Not Found</h1></center>
        <hr>
        <center>{{ hostname }}</center>
    </body>
</html>

About

Simple Template Engine - Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published