On Wed, 23 Jul 2003, Hauck, William B. wrote:
What i've done is just use completely external html files with
html-compliant comments indicating the data field. (example !--
APPNAME_USER_FIRST_NAME --). My application just reads in the html
on startup and does a series of substition
On Sun, 20 Jul 2003, Dave Rolsky wrote:
OTOH, if you were to try to replicate some of Mason's more powerful
features with H::T, like autohandlers, inheritance, etc., then I'm
sure that'd bring H::T's speed down to Mason's level ;)
I wouldn't be too sure. I implemented a lot of that stuff to
On Mon, 21 Jul 2003, Dave Rolsky wrote:
On Mon, 21 Jul 2003, Sam Tregar wrote:
I wouldn't be too sure. I implemented a lot of that stuff to add
HTML::Template support to Bricolage and it's still much faster than
Mason.
A lot as in _all_ of it, or a lot as in autohandlers
-template.sourceforge.net
The module is also available on CPAN. You can get it using
CPAN.pm or go to:
http://www.cpan.org/authors/id/S/SA/SAMTREGAR/
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]). You can
join the HTML::Template mailing-list by visiting:
http
. You can get it using CPAN.pm or
go to:
http://www.cpan.org/authors/id/S/SA/SAMTREGAR/
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]). You can
join the HTML::Template mailing-list by visiting:
http://lists.sourceforge.net/lists/listinfo/html-template-users
/
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]). You can
join the HTML::Template mailing-list by visiting:
http://lists.sourceforge.net/lists/listinfo/html-template-users
On Mon, 19 Aug 2002, Pierre Vaudrey wrote:
with the following starnge error (The Title is displayed but not the
vignette.gif file)
[Mon Aug 19 07:22:24 2002] [error] Missing right curly or square bracket
at /Library/WebServer/Documents/perl/vignette.gif line 1, at end of line
syntax error
On Tue, 23 Jul 2002, WC -Sx- Jones wrote:
Back in RH 6.2 I would hazard that the segfault was more related to Perl
being set to uselargefiles and Apache NOT being set. This only became
visible when one tried to build mod_perl as a DSO. Building as STATIC caused
Apache to be rebuilt using
On 22 Jul 2002, David Dyer-Bennet wrote:
So, specifically for the Linux environment, what are the downsides of
running mod_perl as a DSO? (Pointers to the FM so I can R it would be
fine.)
Segmentation faults, pure and simple. The Apache/mod_perl that ships with
Redhat, and I assume other
On Sun, 16 Jun 2002, Eric Frazier wrote:
I have been looking into HTML::Template which is a lot simper than Embed
perl or the template tool kit. I am wondering if anyone has experence with
using both of these with Registry.pm
I do! Back when I worked for Jesse Erlbaum (the author of
HTML::Template::JIT - a just-in-time compiler for HTML::Template
CHANGES
- Added support for case_sensitive option to new().
- Added new print_to_stdout option to new() to have output
printed to STDOUT as it is generated.
- Added support for ESCAPE. Template syntax support is now
On Mon, 10 Jun 2002, Bill Moseley wrote:
You are correct to worry. You should use flock() to prevent your log file
from becoming corrupted. See perldoc -f flock() for more details.
Maybe it's a matter of volume. Or size of string written to the log. But
I don't flock, and I keep the log
On Mon, 10 Jun 2002, Tom Brown wrote:
?? AFAIK, Files opened in append mode, and written to without buffering,
should _not_ get corrupted in any manner that flock would prevent.
(basically small writes should be atomic.)
Right, and does Perl write with buffering when you call print()? Yes,
On Tue, 11 Jun 2002, Tom Brown wrote:
Right, and does Perl write with buffering when you call print()? Yes, it
does!
huh? That's what $| is all about, and $|++ is a pretty common line of
code.
A pretty common line of code that wasn't in the example shown! And that
only unbuffers the
improvement.
I send this patch to Sam Tregar weeks ago, and i never answered, but maybe
someone here thinks that it's worth to have a look at it, because AFAIK
many ppl use mod_perl+HTML::Template (i do it myself) ;)
Sorry about that! I must have let it fall through the cracks. Did you
send
On Tue, 11 Jun 2002, Nico Erfurth wrote:
I thought about this, and i'm wondering how much ppl realy use it in
this way. IMHO it should be a Don't try this, it will break, instead
introducing this copy-workaround. But i think i will use this patch
only for my private-version, because i don't
The Bricolage development team is proud to announce the release of
Bricolage version 1.3.2. This is a development release with new
features as well as numerous bug fixes. Summary of major changes (see
the Changes file in the distribution for details):
* New installation system tested on
On Tue, 11 Jun 2002, Sergey Rusakov wrote:
open(ERRORLOG, '/var/log/my_log');
print ERRORLOG some text\n;
close ERRORLOG;
This bit of code runs in every apache child.
I worry abount concurent access to this log file under heavy apache load. Is
there any problems on my way?
You are
On Mon, 10 Jun 2002, Sam Tregar wrote:
You are correct to worry. You should use flock() to prevent your log file
from becoming corrupted. See perldoc -f flock() for more details.
Gah, these fingers... That should be perldoc -f flock.
-sam
On Thu, 6 Jun 2002, Perrin Harkins wrote:
For posterity, and possible inclusion in the next rev of the templating
tutorial, how would you recommend people handle this sort of situation
without using HTML::Template::Expr?
Suppose you have a model object for a concert which includes a date.
On Wed, 5 Jun 2002, Andy Wardley wrote:
In TT, you would usually pre-declare a particular format in a config
file, pre-processed templates, or some other global style document.
e.g.
[% USE money = format('%.02f') %]
In your main page templates you would do something like this:
[%
On Sat, 1 Jun 2002, Barry Hoggard wrote:
I don't think the standard HTML::Template has support for formatting
numbers, dates, etc.
And thank the sweet lord it doesn't! HTML::Template is a do one thing
and do it well module. If you want routines for formatting numbers,
dates, etc. then CPAN
On Fri, 19 Apr 2002, Andrew Ho wrote:
DWThis looks pretty good to me. Can anyone suggest how I might
DWprogrammtically send a PDF to a printer once I've generated it in
DWPerl/mod_perl?
Use either Ghostscript or Adobe Acrobat Reader to convert to Postscript,
then print in your normal
On Wed, 17 Apr 2002, Paul Lindner wrote:
I think that this may be a problem with the use of Perl sections.
I believe your original post had something like this:
Perl
use Apache::DProf
use Apache::DB
Apache::DB-init();
/Perl
Nope. That was Perrin Harkins, but I tried it too!
On Wed, 17 Apr 2002, Perrin Harkins wrote:
Benjamin Elbirt wrote:
Well, lets assume that I were to go with
the shared memory option anyway... what would the pitfalls be / concerns?
As mentioned before, you'd probably be better off with MLDBM::Sync or
Cache::Cache. You can try
Hello all. I'm trying to use Apache::DProf but all I get is seg faults.
I put these lines in my httpd.conf:
PerlModule Apache::DB
PerlModule Apache::DProf
Then I start the server, and it looks ok:
[Tue Apr 16 17:22:12 2002] [notice] Apache/1.3.20 (Unix) mod_perl/1.25
mod_ssl/2.8.4
On 16 Apr 2002, Garth Winter Webb wrote:
Sam, try getting rid of the 'PerlModule Apache::DB' line. I've used
Apache::DProf w/o any problems by including only the one PerlModule
line. Since they both want to use perl debugging hooks, I'm guessing
that Apache::DProf is getting crashed up
On Tue, 16 Apr 2002, Sam Tregar wrote:
On 16 Apr 2002, Garth Winter Webb wrote:
Sam, try getting rid of the 'PerlModule Apache::DB' line. I've used
Apache::DProf w/o any problems by including only the one PerlModule
line. Since they both want to use perl debugging hooks, I'm guessing
On Tue, 16 Apr 2002, Perrin Harkins wrote:
Strange, that works for me. I do it like this:
Perl
use Apache::DProf;
use Apache::DB;
Apache::DB-init;
/Perl
That works, but this doesn't:
Perl
use Apache::DB;
use Apache::DProf;
Apache::DB-init;
/Perl
The Bricolage development team is proud to announce the release of
Bricolage version 1.3.1. This is a development release with new
features as well as numerous bug fixes. Summary of major changes (see
the Changes file in the distribution for details):
* SOAP interface fully implemented
On Sat, 2 Feb 2002, John Heitmann wrote:
Here is what I had to do to force correct module loading (mostly stolen
from the great mod_perl guide):
%INC = (); # Possibly unnecessary
do 'FindBin.pm';
unshift @INC, $FindBin::Bin; # There are also modules in the same dir
as the script
unshift
On Sun, 3 Feb 2002, Stas Bekman wrote:
I think the best solution is to run your staging server on a different
port and use a front-end proxy to rewrite to the right server based on
the Host: name. Alternatively put 2 NICs with 2 IPs, that will work if
you don't hardcode the server name in
/
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]). You can join
the HTML::Template mailing-list by sending a blank message to
[EMAIL PROTECTED]
On Thu, 31 Jan 2002, Rasoul Hajikhani wrote:
I have created a data structure and used IPC::ShareLite to save it in
the main memeory. Can someone tell me how to look at it and destroy it.
Your system should have a program called ipcs you can use to examine IPC
shared structures (memory,
On Sat, 26 Jan 2002, Perrin Harkins wrote:
It all depends on what kind of application do you have. If you code is
CPU-bound these seemingly insignificant optimizations can have a very
significant influence on the overall service performance.
Do such beasts really exist? I mean, I guess
On Wed, 23 Jan 2002, Paul Mineiro wrote:
i've cleaned up the example to tighten the case:
the mod perl code snippet is:
Fascinating. The only thing I don't see is where $seq gets assigned to in
the CGI case. Where is the data coming from? Is it perhaps a tied
variable or otherwise unlike
On Sat, 12 Jan 2002, Perrin Harkins wrote:
Well, does this product actually have any users to compete for? GUI
builders usually don't work for anything but the most trivial websites
that could be written in anything and do fine. People seem to come to
mod_perl because they need more
On Sun, 13 Jan 2002, brian moseley wrote:
altho kylix was discussed in the first post of the thread,
my actual reply to you stood on its own as a condemnation of
a general cliquish attitude.
Oh, consider me properly chastened then. BTW - kylix is actually the
subject of this thread,
On Fri, 11 Jan 2002, Matt Sergeant wrote:
Any chance of supporting more template systems in the future, like TT and
XSLT?
Adding more Burners (brictalk for templating system) is definitely
something we're interested in. If you'd like to give it a try there's a
brief set of instructions in
://sourceforge.net/project/showfiles.php?group_id=12636
The module is also available on CPAN. You can get it using CPAN.pm or
go to:
http://www.cpan.org/authors/id/S/SA/SAMTREGAR/
AUTHOR
Copyright 2000-2002, Sam Tregar ([EMAIL PROTECTED]).
Questions, bug reports and suggestions can be sent
HTML::Template::JIT - a just-in-time compiler for HTML::Template
CHANGES
- Added support for loop_context_vars.
- Added support for global_vars.
- Fixed bug in loop param handling that made loop variables
case-sensitive.
DESCRIPTION
This module provides a just-in-time compiler for
HTML::Template::JIT - a just-in-time compiler for HTML::Template
DESCRIPTION
This module provides a just-in-time compiler for HTML::Template.
Templates are compiled into native machine code using Inline::C. The
compiled code is then stored to disk and reused on subsequent calls.
CHANGES
- Added register_function() class method add functions globally.
(Tatsuhiko Miyagawa)
- Fixed broken cache mode.
DESCRIPTION
This module provides an extension to HTML::Template which allows
expressions in the template syntax. This is purely an addition - all
the normal
CHANGES
- Fixed bug where numeric functions all returned 1.
(reported by Peter Leonard)
- Improved performance over 300% with a new grammar and expression
evaluator.
- Enhanced grammar to support call(foo 10) syntax.
DESCRIPTION
This module provides an extension to HTML::Template which
On Mon, 18 Dec 2000, Eric Cholet wrote:
ANNOUNCEMENT: NEW VERSION: HTML::Template 2.1
Does it support ELSIF yet?
Nope, but you can build your own now with the new filter option. I expect
someone to post up an "ELSIF" = "ELSE IF" filter to the HTML::Template
mailinglist any time now.
-sam
perldocs. Even the above text might be out of date, so be sure to
check the perldocs for the straight truth.
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]) for Vanguard
Media (http://www.vm.com). You can join the HTML::Template
mailing-list by sending a blank message
On Mon, 4 Sep 2000, Nelson Correa de Toledo Ferraz wrote:
I still think that this:
? foreach $name (@names) { ?
Name: ?=$name? P
Job: ?=$job{$name}? P
? } ?
Is cleaner (well, as much as perl can be :-)) than this:
TMPL_LOOP NAME=EMPLOYEE_INFO
On Mon, 4 Sep 2000, Perrin Harkins wrote:
Embedded perl is absolutely the best answer sometimes, but don't
underestmate the value of turning your example into this:
[% FOREACH thing = list %]
a href="[% thing.url %]"b[% thing.name %]/b/a
[% END %]
That isn't really much better, in my
On Mon, 28 Aug 2000, Nelson Correa de Toledo Ferraz wrote:
"This approach has two problems: First, their little language is
crippled. If you need to do something the author hasn't thought of, you
lose. Second: Who wants to learn another language? You already know
Perl, so why not use
On Tue, 11 Jan 2000, Dave Hodson wrote:
I'm trying to implement IPC::ShareLite on a Red Hat Linux box. I've
successfully stored/fetched the data I want between proc's, and am now
attempting to "clean up" once the httpd is killed/restarted.
Anyone has a good suggestion on how to do this?
for the straight truth.
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]) for Vanguard
Media (http://www.vm.com). You can join the HTML::Template
mailing-list by sending a blank message to
[EMAIL PROTECTED]
Hello all. Has anyone heard from Maurice Aubrey lately? Does anyone know
how I could contact him (other than his email above)? My searches show
that he last posted here in '98, and I can't find any further traces of
him after that. Emails have gone unanswered.
I'm looking for him because I'm
for the straight truth.
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]) for Vanguard
Media (http://www.vm.com). You can join the HTML::Template
mailing-list by sending a blank message to
[EMAIL PROTECTED]
On Fri, 10 Dec 1999, O'Fallon, Paul (MAN-Atlanta) wrote:
$FilesMatch{'^.*\.pl$'} =
and see if that works (no double quotes).
Nope. Actually, I've given up in the Perl block stuff. I switched to a
templatized conf setup which outputs standard Apache configuration syntax
at runtime and a
On Fri, 10 Dec 1999, Ken Williams wrote:
I had similar problems and discovered that bugs had been fixed in the latest
CVS version, and those fixes fixed my problems. Might be worth a shot.
I figured as much - I'm saddled with an old mod_perl here, with almost no
ability to upgrade.
Another
On Mon, 29 Nov 1999, Tim Bunce wrote:
Ignoring 'thread' (unsafe for production use) and 'debug' modes, the
normal 'fork' mode means that each client gets a seperate ProxyServer
process. And because of that, clients have no way to share connections
with each other.
Is that necessarily the
On Tue, 30 Nov 1999, Tim Bunce wrote:
You're quite right, but both cases need to be allowed for as some
database (notably Oracle) get upset if a child process tries to use a
connection established by the parent process.
Interesting. So Oracle snoops on the PID of the process calling it?
them to interact a little
better. And it's pretty fast.
DOCUMENTATION
The documentation is in Template.pm in the form of POD format
perldocs. Even the above text might be out of date, so be sure to
check the perldocs for the straight truth.
CONTACT INFO
This module was written by Sam Tregar
On Mon, 15 Nov 1999, Leslie Mikesell wrote:
What I'm looking for is a 'nestable' way of handling the logic
flow and HTML construction that will allow a page to be used
as a stand-alone item (perhaps displayed in a frameset) or
included in another page, but when it is included I'd like to
On Sun, 14 Nov 1999, Leslie Mikesell wrote:
I think a lot of unnecessary complexity comes from the fact that
most of the template systems (and apache modules in general) want
to output the html as a side effect instead of accumulating the
page in a buffer or just returning a string containg
I've written up a few test benches for HTML::Parser.. it works ok, but it's
not as fast as I would like it to be.
IS there some reason you don't just use HTML::Mason?
Patient: My tooth aches.
Doctor: Is there some reason you haven't replaced your teeth with
dentures?
-sam
On Wed, 10 Nov 1999, Ian Mahuron wrote:
The code in HTML::Template may work.. though it seems that it would be very
slow.
Actually, I like to think it's some pretty fast code... Of course, that's
because it's only looking for TMPL_* tags, and it's allowing them to
break all kinds of HTML
NTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]) for Vanguard
Media (http://www.vm.com).
orm of POD format
perldocs. Even the above text might be out of date, so be sure to
check the perldocs for the straight truth.
CONTACT INFO
This module was written by Sam Tregar ([EMAIL PROTECTED]) for Vanguard
Media (http://www.vm.com). You can join the HTML::Template
mailing-list by sendi
64 matches
Mail list logo