This is actually the smarty theme system to a tee. See: http://smarty.php.net/crashcourse.php and scroll down to "index.tpl". I actually find smarty much more intuitive. Common excuses: But you can't have control structures: http://smarty.php.net/manual/en/language.function.if.php http://smarty.php.net/manual/en/language.function.section.php http://smarty.php.net/manual/en/language.function.foreach.php But you can't get advanced variables from Drupal: http://smarty.php.net/manual/en/language.variables.php But you can't run PHP code/But it's not powerful enough: http://smarty.php.net/manual/en/language.function.php.php But you can't include files: http://smarty.php.net/manual/en/language.function.include.php http://smarty.php.net/manual/en/language.function.include.php.php But it's hard to do formatting: http://smarty.php.net/manual/en/language.modifiers.php But the theme engine isn't kept up to date: http://drupal.org/project/smarty Robin On 6/23/06, Farsheed <tfarsheed@yahoo.com> wrote:
Hi,
In order to minimize the php code seen by a themer, I was wondering what people thought of making simple aliases for basic printouts of phptemplate variables. The phptemplate engine would go in and find these aliases and convert them to their actual values.
BEFORE: <?php print $content ?> <?php print $sidebar_left ?>
AFTER: {$content} {$sidebar_left}
Just looking to reduce the amount of potentially intimidating code for new themers. Of course regular PHP should still work.
Farsheed
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- Robin Monks, CivicSpace Release Engineer - http://civicspacelabs.com Drupal Marketing Coordinator - http://drupal.org Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/