in reply to Re^3: more bracket chaos
in thread more bracket chaos
note that within the brackets we could have it do multiple other things especially if we insert different files depending on the result. my current implementation of the insertfile calls for a parser restart, which allows for the file to contain another bunch of () < > and [ ] tag levels.(notloggedin) (refas path="db/users/")users(/refas) ##give access to the users dir through a <users> tag <trylogin username="<qd>username</qd>" password="<qd>password</qd>"> <success> You are now logged in! Welcome <get ref="firstname"> <users><qd>username</qd>.xml</users> </get> [session add="username"]<qd>username</qd>[/session] [insertfile]securepage.xml[/insertfile] </success> <fail> <rem>go back to start and do not collect $200</rem> [insertfile]login_form.aXML[/insertfile] </fail> </trylogin> (/notloggedin) (loggedin) <insertfile>securepage.xml</insertfile> (/loggedin)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: more bracket chaos
by ikegami (Patriarch) on Aug 30, 2007 at 17:09 UTC | |
by simonodell (Acolyte) on Aug 30, 2007 at 17:54 UTC | |
by ikegami (Patriarch) on Aug 30, 2007 at 18:04 UTC | |
by simonodell (Acolyte) on Aug 30, 2007 at 18:15 UTC | |
by ikegami (Patriarch) on Aug 30, 2007 at 18:33 UTC | |
|