[Gambas-devel] gambas wiki db scheme

Sebastian Kulesz sebikul at ...176...
Wed Sep 19 00:14:06 CEST 2012


On Tue, Sep 18, 2012 at 6:51 PM, Benoît Minisini
<gambas at ...1...> wrote:
> Le 18/09/2012 23:34, Sebastian Kulesz a écrit :
>>
>> Actually, the parsing could be done inside a module, input text with
>> markup > output html. So, if we start building the website now, this
>> module would just plug in really easily, so it's not a hard
>> requirement for now.
>>
>
> The current markup routine can be used. It is just that the '@' special
> commands are not implemented. But this can be done later.
>
>>>
>>> I'd like the new wiki to be entirely based on one Gambas CGI script
>>> using the gb.web component and ASP-like pages. That way it will be a
>>> good demo for how to use that component.
>>
>> I like the idea, but i think that the ASP rendering engine would need
>> a few changes. First, it should be possible to get the result without
>> it being printed.
>
> What for? What do you mean?
>
>> Second, i don't know if this currently exists, but
>> there should be a syntax declaration to include the content of another
>> webpage inside the current one. Maybe <% Include "Webpage2" %>
>
> The syntax exists, but it is not wonderful:
>
> <%:WebPage2%>
>
> But it can take arguments: <%:WebPage2 foo="bar" zip="zap"%>
>
> And these arguments can be used inside WebPage2 with <%!foo%> and <%!zip%>
>
> Not wonderful syntaxes! :-/
>
> Maybe I could change them into something like that:
>
> <<WebPage2> foo="bar" zip="zap">
> <%=[foo]%>
>
> More readable? More logical?

What about something like... <% Webpage2, ("foo", "bar", ...) %>

<%=Args[0] %> --> foo
<%=Args[1] %> --> bar

<%=Args[2] %> --> NULL, no error should be thrown, but instead return
an empty string.

This way we don't get local vs global variables, and is easy to check
if an argument was passed or not. A webpage should be much more
"malleable" than a class. What do you think?

>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel




More information about the Devel mailing list