[themes] shortcut for phptemplate variable printouts
Laura Scott
laura at pingv.com
Fri Jun 23 18:10:01 UTC 2006
When I started theming for Drupal in 2004, I knew no php, and even so
I found these commands in the templates to be quite obvious.
What's more, there are plenty of resources to learn more PHP.
Adding yet more abstraction to theming seems to be undesirable, imho.
After all, if one is php-phobic, there's always the Smarty theme engine.
Laura
On Jun 23, 2006, at 11:04 AM, Farsheed 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 at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
More information about the themes
mailing list