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

World: r3wp

[Web] Everything web development related

Pekr
31-Jan-2005
[295]
hmm, it is long time ago I looked at Temple sources, but it seemed 
to me, that first phase generates block of blocks ... then you use 
some functions, e.g. find-by-id, etc., which does lookup in rebol 
block structure and then it replaces/adds data to it. Now once you 
generate html content, how does it know about its original formatting? 
You would have to store pointers to certain sections of original 
template to fill-in releavant data, but maybe I just was looking 
wrong into it ...
Gabriele
31-Jan-2005
[296x2]
inside the blocks, there are still strings with spaces and newlines. 
:)
i.e. spaces and newlines are treated as any other text content.
Pekr
31-Jan-2005
[298]
ah so ... and what about tags themselves and their alignment? :-)
Gabriele
31-Jan-2005
[299x2]
what is not preserved, is psaces and newlines inside tags, but that's 
not used much often, at least in my experience
alignment is preserved because spaces are.
Pekr
31-Jan-2005
[301x3]
ah, now I got it, thanks :-)
I was curious about tags indentation from the beginning of row, but 
such "space" is stored in some previous line string, right?
re your patterns above - is that any new functionality? Or does it 
work with functions like find-by-id, etc.?
Gabriele
31-Jan-2005
[304]
new functions, and added support for it to temple-map-data etc.
Pekr
31-Jan-2005
[305]
so no plans of anytime soon Temple release?
Gabriele
31-Jan-2005
[306]
no time now, so no plans.
Pekr
31-Jan-2005
[307]
Did you do any speed comparisons to classical templating engines? 
:-) I read about smarty, its compilation etc., but found it unpractical. 
Maybe Temple with FastCGI could be even faster, as it could have 
some templates preloaded :-)
yeksoon
31-Jan-2005
[308]
on speed with respect to php (and probably other languages).


smarty itself can be further 'accelerated' with accelerators like 
ionCube 
http://www.php-accelerator.co.uk/


So, if one was to ever go down this lane of comparing speed, then 
there is a need to compare
1. tempate system alone
2. with accelerators on.
Gabriele
31-Jan-2005
[309]
petr: Temple has a LOT of room for optimizations. :)
yeksoon
31-Jan-2005
[310]
I would think FastCGI should provide good enough performance. 


Reichart's team is gunning for 0.30s processing for their scripts 
in QTask. That seems a reasonable limit.
Pekr
31-Jan-2005
[311x2]
Gabriele - that is good to know .... hmm, I just wonder what plans 
do you have on temple. The thing is - it is imo correct aproach to 
templating, if your web designer can't program. If you are web designer 
and coder at once, you might find another template systems satisfactory 
enough.
Maybe there could be some download link, I was able to get it working 
with your help with few emails exchange. Thru other ppl usage you 
could gain more feedback or simply docs, or someone could do some 
other coding ....
Ted
31-Jan-2005
[313]
Pekr - http://www.stopdesign.com/log/2003/11/13/nolimits.html- from 
a well-known designer and CSS proponent regarding workflow.
yeksoon
3-Feb-2005
[314]
I have a problem with some layout.


Trying to align an output of 'processingtime' and some 'footer' on 
the same line.. but I always end up wiht the footer a line below. 
The left-right alignment is correct though.

---
.footer {
	text-align: right;
	font:10px verdana, arial, helvetica, sans-serif;
	color: #666;
	background: transparent;
}

.processingtime {
	text-align: left;
	font:10px verdana, arial, helvetica, sans-serif;
	color: #666;
	background: transparent;
}
--

--
<div class="processingtime">some processing time</div>
<div class="footer">some trademarks stuffs</div>
--
Sunanda
3-Feb-2005
[315]
They are both divs so there is an implied newline between them.
Try adding
display:inline
to the footer.
Maxim
3-Feb-2005
[316]
doesn't <idiv> also solve this issue?  or <span>
Sunanda
3-Feb-2005
[317]
Span wil get you a similar effect, though there are differences.
Never heard of idiv -- is it a browser-specific thing?
Maxim
3-Feb-2005
[318]
inline div... I was sure it was part of html 4.0.1   ... note I am 
pulling this from the top of my head, so you are probably right...
Sunanda
3-Feb-2005
[319]
You might be thinking of iframe
Maxim
3-Feb-2005
[320]
perhaps...
yeksoon
3-Feb-2005
[321]
inline is not enough. But it helps remove the 'newline'.

I also add in 'positioning' stuffs
-- 
.footer {
	display:inline;
	font:10px verdana, arial, helvetica, sans-serif;
	color: #666;
	background: transparent;
             position:absolute;
             right:0; 
} 
--
Sunanda
3-Feb-2005
[322]
Try putting the footer inside the other div:
<div class="processingtime">some processing time
<div class="footer">some trademarks stuffs</div></div>
and as inline or (in this case) <span>
yeksoon
3-Feb-2005
[323x3]
I manage to get it looks with this..

--
.footer {
	display:inline;
	font:10px verdana, arial, helvetica, sans-serif;
	color: #666;
	background: transparent;
             position:absolute;
             right:0; 
}



<span class="processingtime"><? echo round($current_time, 3) ?></span>

<span class="footer">&copy;&nbsp; NEUSTEPS TECHNOLOGIES PTE LTD, 
2003-2005</span>
--


not too sure if it is logically correct... but it looks the way I 
wants..
get it looks = get it to look the way I want
end of the day... type and thoughts not in sync
Chris
3-Feb-2005
[326x3]
.footer {width: 50%; float: right; text-align: right;}
.processingtime {width: 50%;}


Should be enough on the face of it.  Adding margins or padding will 
need a little recalculation...
D'oh!  The footer comes second.  Anyway, try --

.processingtime {width: 50%; float: left;}
.footer {width: 50%; float: right; text-align: right;}
.processingtime {width: 50%; float: left; margin-right: -1px;}  -- 
last part for IE...
Tomc
3-Feb-2005
[329]
a bit early for me to be thinking but  I know I have used  "no break" 
tags  aroud things I did not want new lines between
Sunanda
3-Feb-2005
[330]
Tom, Yeksoon is trying one of those things that look simple, but 
take a little care -- two bits of text on the same line, with different 
justifications (left and right). 
Easy with a one-row, two-column table -- but that's overkill.

Easy with three divs -- one containing the other two, but that's 
close to overkill.
Otherwise, a bit of lateral thinking is called for.
Volker
4-Feb-2005
[331]
Found a tool for css and firefox. Opens an editor in the sidebar 
with css for the main-page. and updates main-page on the fly on edit. 
https://addons.update.mozilla.org/extensions/moreinfo.php?application=firefox&version=1.0&os=MacOSX&category=DeveloperTools&numpg=10&id=179>EditCSS
Chris
4-Feb-2005
[332]
Volker, I'm not certain, but it may have been incorporated into this 
extension: http://www.chrispederick.com/work/firefox/webdeveloper/
Pekr
4-Feb-2005
[333x3]
Could anyone help me to understand following? We currently don't 
have time write own webshop, so few of our dealers offered us to 
be hosted. We simply want, that ppl visiting our hosted website would 
still see only http://www.xidyscomp.czin the url bar and not - http://xidys.ekatalog.biz/katalog.aspx
One of my friends suggested me to use frames trick as can be seen 
here - http://pes.eunet.cz, but I don't know what URL, redirection 
etc should I see where ... maybe the trick is in calling dynamic 
script (here php), so user will not be able to recognise real domain?
I would like to know, what is second frame tag for, referring to 
/no.html and when can I obtain message of "your browser does not 
support frames" - is there any browser not supporting frames? (talking 
about source of http://pes.eunet.cz)
Chris
4-Feb-2005
[336]
Are you using Apache?
Pekr
4-Feb-2005
[337]
yes
Chris
4-Feb-2005
[338x2]
You could create an .htaccess file with the following:
DirectoryIndex katalog.aspx
Pekr
4-Feb-2005
[340]
that is all? :-) What will it do? How will it work?
Chris
4-Feb-2005
[341]
I believe it is a simple alternative to %index.html being the default 
document...
Pekr
4-Feb-2005
[342]
well, but katalog.aspx is on different server ...
Chris
4-Feb-2005
[343]
Ah, I didn't notice that.  In that case you could use mod_rewrite, 
I think...
Pekr
4-Feb-2005
[344]
mod_rewrite? Never used something like that ... so shold I edit httpd.conf?