Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Phemplate ... where are you?

CyberKnet (184349) writes | more than 9 years ago

PHP 0

PHP is nice. It's not so nice that I would throw away all the other languages I know, but it's nice enough that I have transferred over my previously perl/cgi website to it. I'd like it a lot better if I could force variable declaration, but on the whole it's pretty good.PHP is nice. It's not so nice that I would throw away all the other languages I know, but it's nice enough that I have transferred over my previously perl/cgi website to it. I'd like it a lot better if I could force variable declaration, but on the whole it's pretty good.

I have tried to use Smarty and a bunch of other templating engines. I gave up on them all and was *just* about to create a new one when I ran across Phemplate. It was crude, but reasonably fast, and had a moderate feature base. I fell in love with it, and have been using it ever since. Anyone out there, if you're looking, Phemplate is awesome.

Back to the point ... I've been using Phemplate for over a year now, and I still really like it. But more over, I've started modifying it. I've added conditions, ability to show loop iterations, and modified their loop implementation to allow recursive loops. It doesn't look like that big of a list, but I felt like it was pretty modest. I also felt other people would like those features, especially the conditions.

So I sent it to the author, given that it's distributed under the GPL, I thought they would like my contributions back. That was about half a year ago, and I never heard back save for a "I'll look at this in a week or so".

Should I continue to submit the changes? I really feel like the recursive loops thing is a big hit. It works really well for me, and I can't see how nobody would have asked for it before... The trouble is that I'm still working from an ancient version of Phemplate, and I think the author is having difficulty patching my changes in. I don't want to have to rework all my changes into the current version, so I kind of understand this too.

I might just have to start making the source code available to everyone.

Okay, so it's time for another quote.... here we go:

Loneliness is the poverty of self; solitude is the richness of self. - Mary Sarton

cancel ×

0 comments

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...