<h1 align="center"><font

<p>PreprecessorJS is a simple parser to transform simple tokens into
&lt;script&gt;&lt;/script&gt; tags, and rewrites the generated markup,or better
said is a kind of preprocessor like php, jsp, asp but using the native
javascript as language.</p>

<h2>Example:</h2>The default pair of tokens used for <font color="#009966">preprocessorJS</font>
(PJS) are <b>"{?" and "?}" </b> and for assignament <b>{?=([JavascriptVar]) ?}</b>
inside these tokens should go javascript code. You can change the pair of
tokens inside the preprocessorJS.js changing openToken,assignamentToken and
closeToken variables.<br>
 <br>
Download&nbsp;<a
 <br>
 So for example:<br>
 <br>

<p>{? var name="Alice";<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var where="in the wonderland";<br>
 ?}<br>
 <br>
 &lt;h2&gt;The book is {?=(name);?} &amp;nbsp; {?=(where);?} &lt;/h2&gt;<br>
 <br>
 And the tokens are mixed and embeded in a html page, that will be preprocessed
loading<br>
 the preprocessorJS.js javascript on the load event in the body tag and calling
changeIt() function.<br>
 <br>
</p>

<p>&lt;head&gt;<br>
 &lt;script

 &lt;/head&gt;<br>
 <br>
 &lt;body onload="changeIt();"&gt;<br>
 <br>
 The resulted markup will be something like:<br>
</p>

<p>&lt;h2&gt;The book is Alice in the wonderland&lt;/h2&gt;<br>
 <br>
 You can also have very simple if-block like this<br>
</p>

<p>{? if(name="Alice"){ ?};<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Some markup..&lt;/p&gt;<br>
 {? } else { ?};<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Other markup...&lt;/p&gt;<br>
 ?}<br>
</p>

<p>Finally in this version, you can have just GET parameters comming from a
HTML Form. Using the array <b>parms<a
where 'parName' is the parameter corresponding to the name of the elements in
your form.<br>
 var name=</p>

<p>{? <br>
 &nbsp;&nbsp;&nbsp;&nbsp;var name=params['theName'];<br>
 ?}<br>
 <br>
 <br>
 This is licenced under Apache 2.0<br>
 <br>
 And the repository is a Fossil one on
<a
processJS</a><br>
 <br>
 Please, donate <br>
 <br>
 &lt;input type="hidden" name="cmd" value="_s-xclick"&gt; &lt;input
type="hidden" name="hosted_button_id" value="RA782FJ6V3ZE4"&gt; &lt;input
type="image"

border="0" name="submit" alt="PayPal - The safer, easier way to pay
online!"&gt;
<img alt="" border="0" width="1" height="1">
<br>
 or contribute to improve it or use it without <i>any warranty</i>, just<br>
 in the spirit to have a handy tool that could help!.<br>
 <br>
</p>

<p>This script was developed by <a
</a>, please use Fossil site. To rise bugs, and ask for a user to contribute to
the project.</p>