Re: [PHP] template engine/template class
http://www.eframework.org/index.php has one, better than Smarty :P Check docs http://www.eframework.org/doc/ http://www.eframework.org/template-syntax/ 2007/3/5, Ross <[EMAIL PROTECTED]>: I am looking for a template class that will take a basic 2 column template I have made and let the user -change the page title -add an header image - enter the main body text -save the file to a folder of their choice Is there already a class out there that does this or similar. Smarty is far too complex for this. It is not really an engine I am looking for but a good class where all the user does is fill in a form and the page is generated. Could do one myself but if there is already one out there why reinvent the wheel? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- bet0x - Barrahome http://www.barrahome.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] template engine/template class
I am looking for a template class that will take a basic 2 column template I have made and let the user -change the page title -add an header image - enter the main body text -save the file to a folder of their choice Is there already a class out there that does this or similar. Smarty is far too complex for this. It is not really an engine I am looking for but a good class where all the user does is fill in a form and the page is generated. Could do one myself but if there is already one out there why reinvent the wheel? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template engine that doesn't rely on PEAR?
On Mon, Jan 16, 2006 at 03:33:08AM +1000, Murray @ PlanetThoughtful wrote: > Hi All, > > Can anyone recommend a PHP 4.x compliant template engine that doesn't > depend on PEAR? php Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Template engine that doesn't rely on PEAR?
> -Original Message- > Cc: php-general@lists.php.net > Subject: Re: [PHP] Template engine that doesn't rely on PEAR? > > Maybe Smarty? Don't know if it depends on PEAR. > > http://smarty.php.net I have used tiny but strong before... It is a lighter weight template system then Smarty. http://tinybutstrong.com/ -Erin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template engine that doesn't rely on PEAR?
Maybe Smarty? Don't know if it depends on PEAR. http://smarty.php.net -- Esú - http://esu.proyectoanonimo.com http://www.proyectoanonimo.com
[PHP] Template engine that doesn't rely on PEAR?
Hi All, Can anyone recommend a PHP 4.x compliant template engine that doesn't depend on PEAR? I can't get PEAR to operate properly on my remote host, so I'm looking for something that can be dropped in to an existing site and is complete in and of itself. Any recommendations that suit the above would be very welcome! Much warmth, Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Template Engine with Event Handlers
Hi Anyone know if any of the current PHP templating solutions implement event handling? I mean something similar to ASP.NET's onClick events, etc. I was thinking maybe a js-triggered ajax system, which allowed php to access some of the JS Objects? I was thinking about doing something like this, and just want to make sure that there isn´t already something done like this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] automatic PHP Template engine
Richard Lynch wrote: On Sun, May 1, 2005 12:54 pm, Evert | Rooftop Solutions said: I'm working on a template engine, and I want my template engine to be automaticly started when a .stl file is called from the browser. I know this can be done with mod_rewrite, but I really need a platform-independant solution. Has anybody some ideas on how to make it work everywhere (preferable also on hosts where you don't have access to configuration/shared hosting). At one end of the scale, you could write a Module for Apache, *just* like PHP is. At the other end, you could give documentation to users about using httpd.conf and/or .htaccess and Apache's ForceType directive to fire up PHP. Somewhere in the middle, I guess you could create an extension of PHP, just like php_mysql.[so|dll] and that *might* maybe give you the ability to hack enough things, including the installer/configure scripts that would do what you want... Probably not though, now that I think about it. I think the most realistic approach, honestly, is to just educate users/hosts how to easily send all your .stl scripts through PHP. If your .stl becomes even moderately popular, they'll do that, certainly *long* before they'll install your STL module to Apache. [snip] I've should have mentioned: The template format is primairily going to be used by inside developers and partners. They want to be able to use it for every client they encounter, but are sometimes restricted by the clients (shared-)host. Thank you for your big explaination, I think I know enough to dive into the subject. regards, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] automatic PHP Template engine
On Sun, May 1, 2005 12:54 pm, Evert | Rooftop Solutions said: > I'm working on a template engine, and I want my template engine to be > automaticly started when a .stl file is called from the browser. > I know this can be done with mod_rewrite, but I really need a > platform-independant solution. Has anybody some ideas on how to make it > work everywhere (preferable also on hosts where you don't have access to > configuration/shared hosting). At one end of the scale, you could write a Module for Apache, *just* like PHP is. At the other end, you could give documentation to users about using httpd.conf and/or .htaccess and Apache's ForceType directive to fire up PHP. Somewhere in the middle, I guess you could create an extension of PHP, just like php_mysql.[so|dll] and that *might* maybe give you the ability to hack enough things, including the installer/configure scripts that would do what you want... Probably not though, now that I think about it. I think the most realistic approach, honestly, is to just educate users/hosts how to easily send all your .stl scripts through PHP. If your .stl becomes even moderately popular, they'll do that, certainly *long* before they'll install your STL module to Apache. If a host won't let the webmaster use .htaccess (or whatever IIS does that's like that) then they're certainly not going to install/configure their server to use your .stl until it's wildly popular. You can't really get around that. Focus on making it the best damn Template system and making it *EASY* for most hosts to configure and QA it. To give you an analogy: In the indepdenent music industry, many artists think they want to get a Distribution deal, where some big-name company will get their music CDs into all the big-name stores like Tower. Nothing could be further from the truth, which is: Demand Drives Distribution It does one absolutely NO GOOD to have your CDs sitting on the shelf at Tower, or even Wal-Mart, if nobody ever heard of the band. The CDs will just collect dust and get shipped back at (ultimately) artist expense. In the case of .stl -- While making it easy to install/configure .stl is a laudable goal, you're simply not in a position to make it something the mass-market ultra-conservative control-panel-only webhosts will allow to be installed, no matter *HOW* easy it is. In fact, you're at the point now where such hosts will actively work to "suppress" your .stl engine, as an unproven un-tested un-trusted technology. Your effort (for now) needs to focus on the hosts who allow some degree of configuration/control to their clients. If a webmaster (or their host) can't (won't) do this in .htaccess (httpd.conf): ForceType application/x-httpd-php then you need to ignore them for now, until you're an 800-pound gorilla they can't ignore :-) WARNING: I may have the part wrong... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] automatic PHP Template engine
Hi, I'm working on a template engine, and I want my template engine to be automaticly started when a .stl file is called from the browser. I know this can be done with mod_rewrite, but I really need a platform-independant solution. Has anybody some ideas on how to make it work everywhere (preferable also on hosts where you don't have access to configuration/shared hosting). regards, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Template Engine
I use one called phemplate, dont be scared of the same its pretty good and follows the same ideology as the rest although check out the benchmark tool of other engines which is supplied on the site. http://pukomuko.esu.lt/phemplate/ I have been thinking of moving to smarty or i just wish there was a templating standard, like a php equivalant to struts hehe. > -Original Message- > From: Tom Rogers [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 15, 2004 6:10 PM > To: George Lantz > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Template Engine > > > Hi, > > Saturday, May 15, 2004, 6:13:25 AM, you wrote: > GL> I was just wondering if anyone had any good advice or tutorials on > GL> building a simple template engine system. I am woking on a > small project > GL> that I would like to distribute, and I would of course like > to separate > GL> logic from html. I really just want to know the basics > without caching. > GL> I am familiar with Smarty and PHPLib and FastTemplate and some others. > GL> But since I am going to be distributing the app, I would like it as > GL> portable and small/simple as possible. Those template systems are > GL> overkill for what I need. Really it does not even have to be > a "Template > GL> system", I would just like to here your thoughts on how you may have > GL> accomplished separation of logic from output in a simple way. > > GL> Thanks, > GL> George > > You can take a look at my 'system', its small (I use it in an > auto-prepend file) and pretty fast. You can view the code here > http://kwiktemplates.com/download.php and the syntax is here > http://kwiktemplates.com/ (still working on the site) Anything you > don't understand drop me a line. > > -- > regards, > Tom > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template Engine
Hi, Saturday, May 15, 2004, 6:13:25 AM, you wrote: GL> I was just wondering if anyone had any good advice or tutorials on GL> building a simple template engine system. I am woking on a small project GL> that I would like to distribute, and I would of course like to separate GL> logic from html. I really just want to know the basics without caching. GL> I am familiar with Smarty and PHPLib and FastTemplate and some others. GL> But since I am going to be distributing the app, I would like it as GL> portable and small/simple as possible. Those template systems are GL> overkill for what I need. Really it does not even have to be a "Template GL> system", I would just like to here your thoughts on how you may have GL> accomplished separation of logic from output in a simple way. GL> Thanks, GL> George You can take a look at my 'system', its small (I use it in an auto-prepend file) and pretty fast. You can view the code here http://kwiktemplates.com/download.php and the syntax is here http://kwiktemplates.com/ (still working on the site) Anything you don't understand drop me a line. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template Engine
On Fri, 2004-05-14 at 16:13, George Lantz wrote: > I was just wondering if anyone had any good advice or tutorials on > building a simple template engine system. I am woking on a small project > that I would like to distribute, and I would of course like to separate > logic from html. I really just want to know the basics without caching. > I am familiar with Smarty and PHPLib and FastTemplate and some others. > But since I am going to be distributing the app, I would like it as > portable and small/simple as possible. Those template systems are > overkill for what I need. Really it does not even have to be a "Template > system", I would just like to here your thoughts on how you may have > accomplished separation of logic from output in a simple way. If simple is what you want, then write your business logic into library files that you can include at the top of your source page. Then use functions which just output the content. As many will argue, PHP is a template engine in its own right, and for your simple purposes then it is probably perfect. Separation in this case just requires you keep your business logic in include files either as simple functiosn or as classes of related behaviour. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Template Engine
I was just wondering if anyone had any good advice or tutorials on building a simple template engine system. I am woking on a small project that I would like to distribute, and I would of course like to separate logic from html. I really just want to know the basics without caching. I am familiar with Smarty and PHPLib and FastTemplate and some others. But since I am going to be distributing the app, I would like it as portable and small/simple as possible. Those template systems are overkill for what I need. Really it does not even have to be a "Template system", I would just like to here your thoughts on how you may have accomplished separation of logic from output in a simple way. Thanks, George
[PHP] template engine
Hi, Since I don't want to continue with Smarty I started with an own (little) template engine. In this first try it should only replace {for loops=INTEGER} ... {/for} through a trivial FOR-loop which runs INTEGER times. This mission was sent to the function "loop" in this file: http://www.offucia.org/pages/template-engine/source.php?file=engine.php In this file I try to work with it http://www.offucia.org/pages/template-engine/source.php?file=test.php But the file loop() cannot be found and theres this mistake error: Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /www/htdocs/v035923/pages/template-engine/engine.php on line 26 Line 26 is this one: $template = preg_replace("!{for loops=(.*)} (.*) {/for}!U",code($1,$2),$template); Many thx 4 help Niels Uhlendorf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Template engine extension
I have created a simple template engine extension. It is published at http://zhat.dk/template/ It is very simple to install and use, and a PHP alternative (an include file) is also provided. No documentation available yet (sorry!!!), so have a look at the example scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template Engine
Which reminds me, while the mailing list was down, I released the Dreamtime template engine for people to play with. More components of the system to come later this week. http://www.phptemplates.org - Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Template Engine
Since so many of you are asking for help w/ a template engine of some sort I have included the one I use for my mail program. I have not tested it with large amounts of text, but it is able to handle some very large strings. It has its own documentation, and if anyone needs any help setting it up I'd be willing to help. Chris "TunkeyMicket" Watford TunkeyMicket Productions www.tunkeymicket.com Attached: mp_template_engine.php mp_template_engine.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]