Hello,
I'm a developper of a Template Engine and I'm unable to mix Php and Html in a same script. So I wonder which technics are used to code Web Applications.
All comments welcome about Php/Html organization.
Pool: Php/Html organization
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
Simplistic file structure
That's it.
Code: Select all
<?php
// Process input
// change whatever and build a 'body' variable
// call outputFunction(javascript_file,css_file,title,body) (tends to be in an include)
?>Does that really differs from Smarty compiled templates?McGruff wrote:If I could vote it would be for option 1 AND 3. I like the WACT idea of compiling templates. Knocks the socks off Smarty.
Sorry for not following my own habit to RTFM prior to asking any questions, unfortunately I have no time at the moment to dig through their wiki (what an awful idea to store documentation in a wiki).
I knew Smarty supported page caching but I didn't realise it could also compile to avoid run-time template parsing. I should take another look at it.
Some WACT benchmarks here.
PS: yeah the Wiki isn't a perfect format. Lots of good design theory in there though if you can track it down.
Some WACT benchmarks here.
PS: yeah the Wiki isn't a perfect format. Lots of good design theory in there though if you can track it down.
- Sevengraff
- Forum Contributor
- Posts: 232
- Joined: Thu Apr 25, 2002 9:34 pm
- Location: California USA
- Contact:
I always use templates and am a big fan of ETS and Smarty.