On Sat, Jun 7, 2008 at 11:23 AM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote:

> OK, but why? What's wrong with strtran()? Such string dividing means
> that you will have to inform PP where you want to introduce your own
> code. In practice it means that it will be necessary to have some
> well known markers in the text just like for strtran() so finally
> you will not reach too much. The same but written in different way.

I agree, not a big problem but this is a way to try to separate page
design from code.

Web pages are created by web designer that use Macs and Adobe's tools.

The pages are included using "PP textinclude" but the developer has to
be informed and add the strtran at the bottom of the page to replace
all the vars ( since Harbour code is not xhtml complaint web page
tools don't like it ).

As you have already understood var replacement is not a big "problem"
but if/while/for are so the next step would be:

A designer need to show different html based on the value of a var.
Now it has to create two separate htmls and tell to the developer how
to use them.

Instead if the "if" Harbour code could be embedded in the html page as
simple xhtml and processed at PP level, the html page would be ready
to use after the designer has committed it.

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to