Simple PHP like templating engine for javascript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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 ;)