On Wed, 12 Mar 2008, Lorenzo Fiorini wrote:

Hi Lorenzo,

[...]
> #pragma __cstream|cContent+=%s
> [ .... ]
> #pragma _endtext
> which are not expected in "standard" xhtml or javascript and give
> errors in tools.
> I wonder if exist sth like #pragma __include "file" to have sth like:
> function xyz()
>    local cContent := ""
>    #pragma __cstream|cContent+=%s
>    #pragma __include "foo1.html"
>    #pragma __include "foo1.js"
>    #pragma __include "foo2.js"
>    #pragma _endtext
>    cContent += "<...><...></html>"
> return cContent
> or if exist a different way to do this.

When you open the stream then it can be closed only by
   #pragma __endtext
or:
   ENDTEXT
and all other lines are ignored. It's important because it means
that you can have other pragmas for foreign language and only one
is reserved. I do not want to increase number of stop conditions
end I think that I should even remove ENDTEXT for __stream and
__cstream pragams or for all stream pragmas end accept it only
for TEXT clause.
But I'll think about sth like:
   #pragma __cstreaminclude <"file_name">|<code with %s result marker>
f.e.:
   #pragma __cstreaminclude "foo1.html"|cContent+=%s

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to