[Gambas-user] WebPage support in Gambas (2)

tobi tobiasboege01 at ...1601...
Sat Mar 24 14:37:31 CET 2012


hi,

On Sat, 24 Mar 2012, Benoît Minisini wrote:
> Hi,
> 
> 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
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

you mean from a gambas application containing several WebPages? a mini per-application cms?
without restrictions this may introduce security risks on particular programs, right? (i think of a
login program from which one may get a privileged Page when implemented without restrictions)
in this regard, i would prefer some special subroutine that may or may not be overwritten (if not,
WebPages may be chosen automatically, which is often a good service!) in that application to
evaluate parameters.

i haven't used any WebPage so far, i just read about it here, so i may have a wrong understanding of
how it works and where it would be used. sorry if that's the case.

regards,
tobi




More information about the User mailing list