0.1.3 • Published 6 years ago

final-web v0.1.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Final-Web

Compile organized XML files into PHP.

Basic Example

Create a source/example.web file inside a source folder:

<page>
    <set $name="Example" />
    <settings>
        <title>{$name} Title</title>
    </settings>
    <header>{$name} Header</header>
    <paragraph>This is a paragraph with a
        <link to="page">link</link>.
    </paragraph>
</page>

Install Final-Web with NPM npm install final-web -g.

Run the compiler "final source-folder destination-folder" from the parent directory of the source folder.

Final outputs the following output/example.php:

<!DOCTYPE html>
<html>
    <?php $name = "Example"; ?>
    <head>
        <title><?php print($name); ?> Title</title>
    </head>
    <body class="page">
        <h1 class="header"><?php print($name); ?> Header</h1>
        <p class="paragraph">This is a paragraph with a
            <a href="page.php" class="link">link</a>.
        </p>
    </body>
</html>

Which renders in the browser:

Example Title

This is a paragraph with a link.

0.1.3

6 years ago

0.1.2

7 years ago

0.1.0

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago