<div>&lt;html&gt;</div>

<div>&lt;head&gt;</div>

<div>&lt;meta http-equiv="cache-control" content="no-cache"&gt;</div>

<div>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;</div>

<div>&lt;style

<div>&nbsp; &nbsp; body { font-family:arial, verdana}</div>

<div>&nbsp; .codigo{ color:#C00000;}

<span class="Apple-tab-span"


<div>&lt;body &gt;</div>

<div>&lt;div style="margin-left:50px;margin-right=50px;"&gt;</div>

<div>&lt;br

<div>&nbsp;&lt;font color='blue'&gt;&lt;h1


<div>&nbsp;&lt;br

<div>&nbsp;&lt;p&gt;</div>

<div>&nbsp;PreprecessorJS is a simple parser to transform simple tokens into
&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt; tags, and</div>

<div>&nbsp;rewrites the generated markup,or better said is a kind of
preprocessor like php, jsp, asp but using the native</div>

<div>&nbsp;javascript as

<div>&nbsp;</div>


<div>&nbsp;</div>

<div>&nbsp;The default pair of tokens used for &lt;font
color="#009966"&gt;preprocessorJS&lt;/font&gt; (PJS) are &lt;b&gt;"{?" and "?}"
&lt;/b&gt; and for assignament &lt;b&gt;{?=([JavascriptVar]) ?}&lt;/b&gt;
inside these tokens should go javascript code.</div>

<div>&nbsp;You can change the pair of tokens inside the preprocessorJS.js
changing openToken,assignamentToken and closeToken variables.&lt;br

<div>&nbsp;</div>

<div>&nbsp;&lt;br

<div>&nbsp;&lt;br

<div>&nbsp;So for example:&lt;br

<div>&nbsp;&lt;br

<div>&nbsp;&lt;div class="codigo"&gt;</div>

<div>&nbsp;{? &nbsp;var name="Alice";&lt;br

<div>&nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var where="in the
wonderland";&lt;br

<div>&nbsp;?}&lt;br

<div>&nbsp;&lt;br

<div>&nbsp;&amp;lt;h2&amp;gt;The book is {?=(name);?} &amp;amp;nbsp;
{?=(where);?} &amp;lt;/h2&amp;gt;&lt;br


<div>&nbsp;&lt;br

<div>&nbsp;And the tokens are mixed and embeded in a html page, that will be
preprocessed loading&lt;br

<div>&nbsp;the preprocessorJS.js javascript on the load event in the body tag
and calling changeIt() function.&lt;br

<div>&nbsp;&lt;br

<div>&nbsp;&lt;div class="codigo"&gt;</div>

<div>&nbsp;&amp;lt;head&amp;gt;&lt;br

<div>&nbsp; &amp;lt;script


<div>&nbsp;&amp;lt;/head&amp;gt;&lt;br

<div>&lt;br

<div>&amp;lt;body onload="changeIt();"&amp;gt;&lt;/div&gt;&lt;br

<div>&lt;br

<div>The resulted markup will be something like:&lt;br

<div>&lt;div class="codigo"&gt;&amp;lt;h2&amp;gt;The book is Alice in the


<div>&lt;br

<div>You can also have very simple if-block like this&lt;br

<div>&lt;div class="codigo"&gt;</div>

<div>&nbsp;{? &nbsp;if(name="Alice"){ ?};&lt;br

<div>&nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;p&amp;gt;Some
markup..&amp;lt;/p&amp;gt;&lt;br

<div>&nbsp;{? &nbsp;} else { ?};&lt;br

<div>&nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;p&amp;gt;Other
markup...&amp;lt;/p&amp;gt;&lt;br

<div>&nbsp;?}&lt;br


<div>&lt;p&gt;</div>

<div>&nbsp;Finally in this version, you can have just GET parameters comming
from a HTML Form.</div>

<div>&nbsp;Using the array &lt;b&gt;parms['parName']&lt;/b&gt; where 'parName'
is the parameter corresponding to the</div>

<div>&nbsp;name of the elements in your form.&lt;br

<div>&nbsp;var name=</div>

<div>&nbsp;</div>

<div>&nbsp;&lt;div class="codigo"&gt;</div>

<div>&nbsp;{? &nbsp;&lt;br

<div>&nbsp; &nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var
name=params['theName'];&lt;br

<div>&nbsp;?}&lt;br


<div>&nbsp;&lt;br

<div>&nbsp;</div>

<div>&nbsp;&lt;br

<div>&nbsp;This is licenced under Apache 2.0&lt;br

<div>&nbsp;&lt;br

<div>&nbsp;And the repository is a Fossil one on &lt;a

processJS&lt;/a&gt;&lt;br

<div>&nbsp;&lt;br

<div>&nbsp;Please, donate &lt;br /&gt;&lt;br

<div>&nbsp;&lt;form
method="post" target="_top"&gt;</div>

<div>&lt;input type="hidden" name="cmd" value="_s-xclick"&gt;</div>

<div>&lt;input type="hidden" name="hosted_button_id" value="RA782FJ6V3ZE4"&gt;</div>

<div>&lt;input type="image"

border="0" name="submit" alt="PayPal - The safer, easier way to pay
online!"&gt;</div>

<div>&lt;img alt="" border="0"
width="1"
height="1"&gt;</div>

<div>&lt;/form&gt; &lt;br

<div>&nbsp;or contribute to improve it or use it without &lt;i&gt;any
warranty&lt;/i&gt;, just&lt;br

<div>&nbsp;in the spirit to have a handy tool that could help!.&lt;br

<div>&lt;br

<div>&lt;p&gt;</div>

<div>&nbsp;This script was developed by &lt;a
&lt;/a&gt;,
please use Fossil site.</div>

<div>&nbsp;To rise bugs, and ask for a user to contribute to the project.</div>