[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binarycloud-dev
Subject:    [binarycloud-dev] global vars in templates
From:       Jason Hines <jch () eyeintegrated ! com>
Date:       2003-12-20 18:09:14
[Download RAW message or body]


instead of pushing many variables into each node's template, such as 
$base_url, I think it makes better sense to pass it a single array, much 
like smarty does automatically with $smarty array.

So like {$smarty.session.SomeVar}

In node templates, we could have:

{$binarycloud.base_url}

or maybe better with a layout:

{$binarycloud.workspace.name}
{$binarycloud.workspace.base_url}
{$binarycloud.app.name}

This may be overkill at first - {$binarycloud.VarName} may be fine enough.


jason


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@binarycloud.tigris.org
For additional commands, e-mail: dev-help@binarycloud.tigris.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic