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

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

florin
25-Aug-2010
[8823x3]
The JS is executed by the browser once the buffer is returned to 
the browser. What I want is a mapped .r file to process the DOM source 
on the server side. I don't see where the JS concern.
Graham: so say your library updates . .you have to update all the 
pages that use the js libraries" . The answer is yes. The html file 
would generally behave as any other html file that is not backed 
up by any server side.
There could be a application.r file that allows for global / conditional 
page includes. What I care most is that the html file remains as 
a designer wants it - no scripting.
Graham
25-Aug-2010
[8826]
well, the current rsp script name may be accessible ..and if so, 
you can just load in the html page
florin
25-Aug-2010
[8827x2]
Good. What route do I go to show the .html extension in the browser 
though?
bind-extern RSP to [.htm .j .rsp] ?
Graham
25-Aug-2010
[8829x2]
sounds like it
so your "rsp" page could be .html and the template .htm
florin
25-Aug-2010
[8831]
And so I did. Then I used the app-init.r to test the results, and 
the before and after page intercept did not work.
Graham
25-Aug-2010
[8832]
and does rsp execute at all?
florin
25-Aug-2010
[8833x3]
Let me check. It shou.d
It does work. Yet the example code does not inject the text before 
the </body> tag.
I mean this example code in the app-init.r: 

 on-page-start: does [
        set 'start-time now/time/precise
    ]

    on-page-end: has [pos elapsed][
        if pos: find response/buffer "</body>" [
            elapsed: now/time/precise - start-time
            insert pos reform ["<br>Processed in :" elapsed]
    ]
Graham
25-Aug-2010
[8836x2]
Doc's debug code does that ...
so the processed in no longer works with a .html extension?
florin
25-Aug-2010
[8838]
Sure. But I am wrong? My understaning from the docs is that the app-init.r 
would inject this in every page when processed.
Graham
25-Aug-2010
[8839x2]
it should ....
and it does when you use a rsp extension
florin
25-Aug-2010
[8841]
Don't you love it when it happens! I was working on the http.cfg 
file located in the cheyenne source rather then the proper one. I 
should've listened ot my wife an go to bed!
Graham
25-Aug-2010
[8842]
so, we've been chatting for 45 mins because you were working on the 
wrong file???
florin
25-Aug-2010
[8843]
45 minutes? I outta go. I messed up your time.
Graham
25-Aug-2010
[8844]
LOL
florin
25-Aug-2010
[8845]
Would you not find this web framework appealing though?
Graham
25-Aug-2010
[8846x3]
not me ...
ie. I'd like to see it working first
it looks more higher maintenance than what I had in mind
florin
25-Aug-2010
[8849x2]
Well... I am going to find out what a good night sleep does.
You say so because in your dialect, the master of the page is yourself. 
What do you do though when you have to interract with web designers?
Graham
25-Aug-2010
[8851]
give them the template I guess
florin
25-Aug-2010
[8852]
The re-usability that you are looking for (i.e. the JS, etc) could 
be met with a simple configuration file and page fragements.
Graham
25-Aug-2010
[8853]
In my idea, the template would be loaded from DB .. so it could be 
altered on a per user basis
florin
25-Aug-2010
[8854]
Besides, CSS would take care of most cases of re-use.
Graham
25-Aug-2010
[8855x2]
Having a single template does not appeal
but .. show me the pudding and I'll eat it :)
florin
25-Aug-2010
[8857]
:) We need to write some code then. See ya. And thanks for the time.
Graham
25-Aug-2010
[8858]
bye
Kaj
25-Aug-2010
[8859x3]
Florin, Gabriele wrote a templating engine based on XML ID attributes 
several years ago. It's called Temple
I agree with your requirement of designer-approachable templates
Most other REBOL engines you'll find are based on the reverse concept 
of wanting to make as much as possible into REBOL syntax
florin
25-Aug-2010
[8862x3]
Kaj, thanks. I will look for it.
Well, half hour google search does not help finding it.
Does anyone have a busy httpd.cfg to share? Trying to learn from 
some practical examples.
Graham
25-Aug-2010
[8865]
I don't think I've ever seen Temple
florin
25-Aug-2010
[8866]
I don't find much use of rebol view. I'm interested in browser based 
stuff, and that's the only way I'd spend time with rebol. I'd love 
to take a look at Temple.
PeterWood
25-Aug-2010
[8867x2]
I believe this is what you are looking for - http://www.rebol.it/giesse/temple.r

I found it by searching the mailing list archives at rebol.org
This recorded AltME discussion seems to serve as documentation - 
http://www.rebol.it/giesse/Temple.pdf
florin
25-Aug-2010
[8869x3]
Wonderful. I'm going to look into it.
I read the conversation. That is what I am looking for. Unfortunatelly, 
it was anandoned. Temple is not using Cheyenee but cgi.
Graham: It appears that this could be some proof in the puding. Andrew 
has few concerns that seemed to be much like yours. Interesting read. 
I wish I came accross this type of framework when I was still doing 
Struts in 2003.
Graham
25-Aug-2010
[8872]
temple is pre-cheyenne