Final-Language
Compile organized XML files into PHP.
Basic Example
Create a source/example.web file inside a source folder:
{$name} Title {$name} Header This is a paragraph with a link.
Install Final-Language with NPM npm install final-language -g
.
Run the compiler "final source-folder destination-folder
" from the parent directory of the source folder.
Final outputs the following output/example.php:
<?php $name = "Example"; ?> <?php print($name); ?> Title <?php print($name); ?> Header This is a paragraph with a link.
Which renders in the browser:
Example Title
This is a paragraph with a link.