r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Web] Everything web development related

Graham
7-Sep-2005
[724]
Cheyenne is used to provide web access to my Uniservel based mail 
server.
Kaj
7-Sep-2005
[725]
But it's also for Apache, I see?
Graham
7-Sep-2005
[726]
Yes.
Kaj
7-Sep-2005
[727x2]
Thanks
Magic! looks pretty good. Do you know how much the 2.5.3 docs are 
outdated for the 3.1 release?
Graham
7-Sep-2005
[729]
No, I've never used Magic myself .. just read the docs.
Pekr
8-Sep-2005
[730x2]
Magic? Is English documentation available? If not, then it is not 
of a much general use ...
then only suitable concept for me was Temple ... but it was not finished 
yet ...
Graham
8-Sep-2005
[732]
vide supra.
Pekr
8-Sep-2005
[733]
what is vide supra?
Graham
8-Sep-2005
[734]
v.s.
Pekr
8-Sep-2005
[735x2]
how many templating concepts do we have now? Let'S sum it up? I do 
remember shlik.org RSP, Magic! and Maxim planned something too, no?
what is v.s.? :-)
Graham
8-Sep-2005
[737]
It's Latin for "look above", or, read what was written before.
Pekr
8-Sep-2005
[738]
ok, thanks - now my questions - Chayanee with RSP and Magic!  are 
two different products, right?
Sunanda
8-Sep-2005
[739]
RSP and magic are completely different products, yes.  Same idea, 
but differente everything else.
Pekr
8-Sep-2005
[740]
which one works with "custom tagging"? That wins for me - no mixture 
of rebol plus html code plese :-)
Sunanda
8-Sep-2005
[741x3]
<but does anyone know what happened to Shlik?>

Not. His website changed a couple of times. Last known (to me) working 
one was
  http://laurentchevalier.dyndns.org/rebol/
But that is broken now.
RSP was/is much more like PHP  -- rebol code embedded in HTML tags.
That's probably the one you''d prefer, Petr.
or maybe I misread your preference -- Magic is more like a HTML-generating 
dialect
Pekr
8-Sep-2005
[744x3]
not sure .... but I will know very soon now - finishing some databases 
for my friend, I will let designer do his work and produce some templates. 
Those templates have to be displayable without touching rebol ...
so maybe magic ...
nor Magic! is the way to go for me, as I look into it now :-)
Ladislav
8-Sep-2005
[747]
you should invent the best notation then :-)
Pekr
8-Sep-2005
[748x2]
what do you mean by notation? :-) I already said that I preferred 
Temple way to go. Simply put - I am not designer, my designer is 
not a coder. So I want him to freely produce his "magic ui wonders",using 
his tools, not being dependant upon rebol. So I assume we go with 
maybe slower aproach - html with comment sections, parsed by rebol, 
replaced by engine ...
ah, now I remember another one - Maxim's Remark, but it was probably 
not released either ...
Graham
8-Sep-2005
[750]
Max sent me a copy of ReMark.
Volker
8-Sep-2005
[751]
how would the the designer like to do the markup? inserting html-tags? 
inserting a demo-table with data? what do his tools support?
Pekr
8-Sep-2005
[752]
yes, exactly, have you looked at Gabriele's temple? More in 20 min, 
got to go ...
François
8-Sep-2005
[753x3]
Hello, there is also FastMagic!, a refactoring of Magic! to work 
in FastCGI mode... It also add some usefeull tags like <rebol:include> 
<rebol:if>, <rebol:forall> and <rebol:make-doc-pro>. Rebol Directory 
is being developped with it and the code is available at d2740.servadmin.com/~francois/. 
You will find both fastmagic! code and the code of Rebol Directory 
as well...
And you can switch from FastCGI to CGI but modifying the flag mod-fastcgi 
in the file fmagic.r
You can also add custom tag by extending the engine: 'm-execute. 
This is how I added <rebol:xxx> tags, because I want to avaide my 
html page to look like plain cgi scripts...
Pekr
8-Sep-2005
[756]
The problem is I did not use such system in praxe, so maybe I develop 
it on my own (very simple first version) to actually better understand 
needs of the cooperation between me and our designer ... then I can 
eventually choose one which fits best ....
Volker
8-Sep-2005
[757]
Maybe the designer could make own suggestions? Making a demo-page 
where he marks up in a way he would like. And we figure out how to 
translate that in a parsert.
Pekr
8-Sep-2005
[758x3]
now let me explain how Temple works ... if I screw it, maybe Gabriele 
will correct me :-)
It works like a DOM. It decomposes (parses) html page (disadvantage 
is it requires tags to be properly ended, but that is maybe question 
of robustness of parsing mechanism, which just could be made better) 
into rebol block ....
you simply don't put ANY tags into your page ... you simply use advantage 
of 'class and 'id elements, where 'id is unique identifier, e.g. 
table number, and 'class is simply a class :-) - repetitive object 
of some kind (e.g. column)
Volker
8-Sep-2005
[761]
maybe parsing could be done with a prefix-tag. 
 <fill-data><tabel> ... </table>

and the parser figures out where the next tag (the table here) ends.
Pekr
8-Sep-2005
[762x3]
then you have several functions available, mainly find-by-id, find-by-class, 
find-path (which help you in nesting into parsed block-of-blocks 
structure ....
and there is the main function temple-map-data, which in combination 
with above functions finds particular element (e.g. table) and in 
repetitive manner maps data into structure - it replaces those elements 
...
so - my deisnger e.g. does table, assigns it 'id or not, does e.g. 
two rows as an example of the design, and via temple-map-data you 
map it ....
Volker
8-Sep-2005
[765]
sounds smart. (forget that prefix-thing, typed before reading about 
id)
Pekr
8-Sep-2005
[766x2]
no mixture of data and code, aproach, which should go into trashcan 
;-) It was imo developed by by php freaks, who do both - design and 
coding. Such stuff is not able to work unless you put it into production 
environment ...
Of course Temple imposes certain kind of web development, but ....
Volker
8-Sep-2005
[768]
sounds like its the way to go fo you. lets try it :)
Pekr
8-Sep-2005
[769]
IIRC even Doc liked it (he has that WEbsomething tool)
Volker
8-Sep-2005
[770]
i guess php goes another way. its simple enough for designers to 
php themself. means real pro designers would not. but most "hobbiists" 
can, not only freaks.
Pekr
8-Sep-2005
[771x2]
Gabriele just admitted, it can be slow ... you simply has template.html 
- your designer is completly free to replace it not knowing single 
line of REBOL, then you have your engine - temple, and then your 
temple script (those map-data find-by-class etc. instructions)
maybe kind of caching could be introduced to speed things, not needing 
to parse template with each request ...
Volker
8-Sep-2005
[773]
often those things can be speedd upby caching/compiling. You parse 
the pagew, store this find-by-class data in a file and use that on 
request.