Minisini aggiunge che:
I have added two syntaxes in WebPage.
The first one is:
<%:OtherWebPage%>
This includes the OtherWebPage contents inside the current WebPage.
That syntax can take attributes, like an HTML markup.
<%:OtherWebPage name="value" name2="value2"%>
Beware the the contents of an attribute does not follow the HTML syntax
(as it is rendered on the server).
To get the value of an attribute in OtherWebPage, you must use the
second added syntax:
<%!name%>
So, now, you have four server-side syntaxes in a Gambas WebPage:
1) <% ... %> to include any code.
2) <%= ... %> to render HTML from a Gambas expression.
3) <%: ... %> to include another WebPage, passing attributes optionnaly.
4) <%! ... %> to get the value of an attribute.
To render a specific WebPage, you have to call the Render() method.
Now I have a question: would it be useful to have a mechanism that will
automatically choose a WebPage to render from the URL contents?
--
Benoît Minisini