From: Sandro D. <san...@ti...> - 2004-05-20 16:19:33
|
I come back for a problem that the last time had no response. I developed some modules with php that relayed on the php option -q that prevented the output of the header of php (already produced by web-lib functions). Now i see that php 4.3.4 does no longer have that option so that I can't stop it. I can't eather go with header, since it seems to clash with webmin. Can I have some more info on the requirements from webmin on that field? if I use the php "header" function to generate headers, webmin will hang with the browser saying "loading the page". TIA sandro *:-) -- Sandro Dentella *:-) e-mail: san...@ti... http://www.tksql.org TkSQL Home page - My GPL work |
From: <be...@ge...> - 2004-05-20 23:06:37
|
Is it ok if I make a module that uses a template engine? How about an external one? (such as: http://www.template-toolkit.org/ ). Or should I just stick to HTML:Template -ben |
From: Jamie C. <jca...@we...> - 2004-05-21 08:48:13
|
Because Webmin module program are just CGI scripts, there is really no restriction on what tool you can use to generate the HTML they output. However, it is a good idea to always call the header and footer function, as these can be overridden by themes to produce a custom style. If your module was to produce the full HTML for a page from the <html> tag onwards itself without calling header, it would look out of place in a different theme .. - Jamie On Fri, 2004-05-21 at 08:05, be...@ge... wrote: > Is it ok if I make a module that uses a template engine? How about an > external one? (such as: http://www.template-toolkit.org/ ). Or should I > just stick to HTML:Template > -ben |
From: <be...@ge...> - 2004-05-21 21:36:12
|
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?=20 And yes, I'm calling header and footer. I'm just tired of writing html and cgi all in one file. -ben Jamie Cameron said: > Because Webmin module program are just CGI scripts, there is really no > restriction on what tool you can use to generate the HTML they output. > However, it is a good idea to always call the header and footer > function, as these can be overridden by themes to produce a custom > style. If your module was to produce the full HTML for a page from the > <html> tag onwards itself without calling header, it would look out of > place in a different theme .. > > - Jamie > > On Fri, 2004-05-21 at 08:05, be...@ge... wrote: >> Is it ok if I make a module that uses a template engine? How about an >> external one? (such as: http://www.template-toolkit.org/ ). Or should >> I just stick to HTML:Template >> -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=3D3149&alloc_id=3D8166&op=3Dclick > - > Forwarded by the Webmin development list at web...@we... To > remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Joe C. <jo...@sw...> - 2004-05-21 22:59:17
|
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. be...@ge... 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 |
From: <be...@ge...> - 2004-05-24 04:03:31
|
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 wit= h special denotation for variables, and then another file to assign the vars, and repeat blocks of html and such. Is that what your talking abou= t 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 i= n > web-lib. One can hope that they will soon provide simple calls for th= e > 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. > > be...@ge... 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=3D3149&alloc_id=3D8166&op=3Dclick > - > Forwarded by the Webmin development list at web...@we... To > remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Joe C. <jo...@sw...> - 2004-05-24 22:00:36
|
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. be...@ge... 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. >> >>be...@ge... 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 |
From: <be...@ge...> - 2004-05-25 02:20:01
|
can do -ben Joe Cooper said: > 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. > > be...@ge... 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. >>> >>>be...@ge... 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 d= o >>>> 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=3D3149&alloc_id=3D8166&op=3Dclick > - > Forwarded by the Webmin development list at web...@we... To > remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |