Sintags is a nice little template syntax for PHP
<http://www.bermi.org/sintags/index.html>
Maybe there is a way to integrate it?
Example Sintags:
{loop posts}
{post.comment?} {post.author?}
{end}
Created PHP CODE:
empty($posts) ? null : $post_loop_counter = 0;
if(!empty($posts)){
foreach ($posts as $post_loop_key=>$post){
$post_loop_counter++;
$post_odd_position = $post_loop_counter%2;
echo isset($post->comment) ? $post->comment : '';
echo isset($post->author) ? $post->author : '';
}
}
My main objective is to have a fully valid (X)HTML-template without PHP-code inbetween. And Sintags templates are much nicer to read and easier to edit.
Thanks & greetings,
Oliver
SDG