Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

A compiler that replaces placholders in a file with configured text

Notifications You must be signed in to change notification settings

Nevah5/placeholder-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

placeholder-compiler

About this repo

In this repository, you can find a compiler, that replaces placeholders (${placeholertitle}) in the specified file (index.php).

How to use

To use the project, you just execute the index file with php.
To edit the input and output file names, just edit lines 3-5 in index.php.

$input = "template.html";
$file_replacements = "input.txt";
$output = "index.html";

IMPORTANT! You can only use one placeholder per line in the input file!

About

A compiler that replaces placholders in a file with configured text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published