<!--- >
Joelie
< --->
<tag.slashes>
<ensure variable="get.s2" value="">
<tag.jx_def>
<var C = GLOBAL.Def.Style.color>
<!--- Program Requests --->
<if get.s1 EQ "jx_ac">
<tag.jx_ac>
<BREAK>
<elseif get.s1 EQ "style.css">
<!--- include style, stop processing --->
<tag.jx_style headers="1">
<BREAK>
<elseif get.s1 EQ "script.js">
<!--- include script, stop processing --->
<tag.jx_script headers="1">
<BREAK>
<elseif get.s1 EQ "j_service">
<tag.j_service>
<BREAK>
<elseif get.s1 EQ "fcode.js">
<tag.fcode>
<BREAK>
<elseif get.s1 EQ "ajaxupload.js">
<tag.ajaxupload>
<BREAK>
</if>
<!--- air traffic control! --->
<if isDefined("get.ugly") AND get.ugly EQ 1 AND isDefined("get.j")>
<goto url="http://#this_domain#/j:#get.j#">
<BREAK>
</if>
<if get.s1 EQ "" OR get.s1 EQ "home" OR so_slash_string EQ "j:">
<tag.jx_layout title="Joelie"
description="Fastest way to make web application. Start programming now.">
<tag.jx_home>
</tag.jx_layout>
<elseif get.s1 EQ "login">
<tag.jx_layout title="Log In | Joelie"
description="Log in to code.">
<tag.jx_login_page>
</tag.jx_layout>
<elseif get.s1 EQ "help">
<tag.jx_layout title="Help | Joelie"
description="Help with Joelie.">
<tag.jx_help>
</tag.jx_layout>
<elseif get.s1 EQ "account">
<tag.jx_layout title="Your Account | Joelie"
description="Manage your Joelie account.">
<tag.jx_account>
</tag.jx_layout>
<elseif left(so_slash_string,2) EQ "j:">
<tag.jparse_parse str="#so_slash_string#">
<var GLOBAL.Def.jParse = return>
<var J = GLOBAL.Def.jParse>
<var get.j = lcase(J.jStr_resolved)>
<if J.status EQ 1>
<tag.jx_layout title="#escapeMarkup(get.j)#"
description="#escapeMarkup(get.j)# on Joelie">
<if J.single EQ 1>
<tag.jx_single>
<else>
<tag.jx_set>
</if>
</tag.jx_layout>
<else>
<tag.jx_layout title="BAD DOG: #escapeMarkup(get.j)#"
description="#escapeMarkup(get.j)# is not a valid Joelie string.">
<h3>#escapeMarkup(get.j)#</h3>
<p>
The statement is not a valid Joelie string.
</p>
<p>
<a href="http://#this_domain#/">Joelie</a>
</p>
</tag.jx_layout>
</if>
<elseif left(so_slash_string,4) EQ "run:">
<tag.jparse_parse str="#replaceNoCase(so_slash_string,"run:","j:")#">
<var GLOBAL.Def.jParse = return>
<tag.jx_run>
<elseif left(so_slash_string,4) EQ "new:">
<if isDefined("get.tbl") AND isValidGutitle(get.tbl) EQ 1 AND isDefined("get.id")>
<var get.tbl = gutitleFormat(get.tbl)>
<var get.id = gutitleFormat(get.id)>
<tag.jparse_parse str="j:/#get.tbl#-#get.id#">
<var GLOBAL.Def.jParse = return>
<var J = GLOBAL.Def.jParse>
<else>
<tag.jparse_parse str="#replaceNoCase(so_slash_string,"new:","j:")#">
<var GLOBAL.Def.jParse = return>
<var J = GLOBAL.Def.jParse>
</if>
<var get.j = lcase(J.jStr_resolved)>
<tag.jx_new>
<else>
<tag.jx_layout title="Not Found | Joelie"
description="This page could not be found on #this_domain#">
<h3>Not Found</h3>
<p>
Joelie could not find a page for <b>#escapeMarkup(so_slash_string)#</b>
</p>
<p>
<a href="http://#this_domain#/">Home</a>
</p>
</tag.jx_layout>
</if>