[geeklog-devel] caching template library
joe at ThrowingDice.com
Thu Nov 29 22:59:30 EST 2007
At 09:24 PM 11/29/2007, Alford Deeley wrote:
>on 29/11/2007 6:00 PM Mark R. Evans wrote:
>>...For example, on the main index page if there were sub-albums,
>>then I needed a column to display the subalbum info, for those
>>albums that had none, it just had a blank column. Now I can check
>>if lang_subalbum is set, if not, dynamically call a td colspan=2
>>and use the whole page width for that album display.
>You don't need a template caching library to accomplish this. c'mon!
>You can do that easily with the code you have. It's just one more
You're missing the point. The code should not decide that the album
is in a table. The template should. Thus the code should never out
<td colspan="2">content</td>. It should just output content and let
the theme's template figure out what that looks like. Of course you
don't need a caching template library to accomplish a singular output
format. But you do need a template library with 'if/else' to handle
certain basic things if you want to separate content from formatting.
Throwing Dice Games
More information about the geeklog-devel