Simple templating system

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Post Reply
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Simple templating system

Post by andyhoneycutt »

Hello all, I've recently found some code I was working on earlier this year. It's a very simple HTML generation script and I was hoping to get a bit of feedback on it. The idea is that you build a document containing all the items you want generated, much like a config file, and load it into this parser and it outputs the proper CSS/HTML. Please take a look and let me know what you think.

I will add the files as attachments now, but would gladly post them in php blocks here if that's preferred.

Thanks much,
Andy.

ETA: I mucked the command file. Resubmitted.
Attachments
parser.tgz
parser class(es) and sample command file.
(6.91 KiB) Downloaded 210 times
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Simple templating system

Post by Christopher »

Well that is the strangest "templating system" I have seen in while. It is in some very ways interesting though. Worth a look. Do you still use this code?
(#10850)
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Simple templating system

Post by andyhoneycutt »

I've never used this code in a production format. I wrote it in-between projects at work to fool around with text parsing and object containers. It was fun to write, but I have no use for it. I can imagine there are applications for code like this, with proper modifications.
Post Reply