0.1.0 • Published 6 years ago
productionprocessor v0.1.0
Production Processor
SEE LICENSE.TXT FOR LICENSING INFORMATION
The ProductionProcessor is simply a templating engine that converts variables to variable definitions.
Variables look like this: {{path/to/file}}
and
Variable definition are files inside of the Variables directory in the current directory.
NOTE!!! In the event you would like to use double curly brackets ({{/}}) then use {~{~ and it will automaticaly be replaced with double curly brackets at the end of the ProductionProcessor. i.e {~{~HelloWorld}~}~ will be replaced with {{HelloWorld}}
CLI Usage:
To process index.html, login.html, and signup.html run this command: node ProductionProcessor.js index.html login.html signup.html
.
For example:
index.html
<html>
<body>
<h1>{{Text/WelcomeMessage}}</h1>
</body>
</html>
&
Variables/Text/WelcomeMessage
Hello, World!
Result:
<html>
<body>
<h1>Hello, World!</h1>
</body>
</html>