Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple PHP like templating engine for javascript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.js
package.json
test.js
test.jshp

README.md

A Library for writing PHP like escapes but parsed with javascript as the mixin language

<? // index.jshp
    title = "My Special Site" + data['section-title'];

?>
<html>
<head><title><?=title?></title></head>
<body>
<table>
    <tr>
<? for (row in rows) { ?>
        <td>
            <?=rows[row][0]?>
        </td>
<? } ?>
    </tr>
    <tr>
<? for (row in rows) { ?>
        <td>
            <?=rows[row][1]?>
        </td>
<? } ?>
    </tr>
    <tr>
<? for (row in rows) { ?>
        <td>
            <img src="http://prozacville.com/images/Voltron_V<?=rows[row][0]?>.jpg" />
        </td>
<? } ?>
    </tr>
</table>
</body>
</html>

test.js implements a small webserver that serves test.jshp - the worlds first Voltron fan site, implemented in jshp ;)

Something went wrong with that request. Please try again.