logo       

Re: [webmin-devel] html templates ok?: msg#00027

web.webmin.devel

Subject: Re: [webmin-devel] html templates ok?

No. web-lib isn't getting templating. I was just mentioning the new gui functions. But if you want templates, use your favorite template module.

Just use the already existing Perl Modules module to install it if the user doesn't have it, rather than reinventing the wheel and doing something without the users knowledge. An example of this can be found in the LDAP module.

ben@xxxxxxxxxxx wrote:
I'm not sure what your talking about with the web-lib thing, but I'm
accustom to writing html using templates. That is, one file for html with
special denotation for variables, and then another file to assign the
vars, and repeat blocks of html and such. Is that what your talking about
with web-lib?
-ben
Joe Cooper said:

Don't auto-download anything. Do what Jamie has done in the LDAP
module, for example...Check for the module, and if it doesn't exist,
allow the user to use the Perl Modules module to install it. You don't
need to reinvent the wheel in this case. Jamie's already rolls quite
nicely.

I'll also mention that Jamie has started a simple set of GUI routines in
web-lib. One can hope that they will soon provide simple calls for the
most common GUI elements and you won't need to use separate modules,
and theme designers can replace the functions on an as-needed basis to
modify GUI elements.

ben@xxxxxxxxxxx wrote:

I'm currently developing with HTML:Template, but I had to use CPAN to
download and install the module. Should I add an auto-download sort
of script so that if they don't have HTML:Template, it will go and do
it? And yes, I'm calling header and footer. I'm just tired of
writing html and cgi all in one file.
-ben




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
-
Forwarded by the Webmin development list at webmin-devel@xxxxxxxxxx
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise