On Fri, Jul 1, 2011 at 2:09 AM, Brion Vibber <[email protected]> wrote:
> If it's different on every page you're going to output it on, then you may
> need to use a different technique.
>
If you just need to export a variable to JavaScript, use the
MakeGlobalVariables hook (for variables that can change from page to
page) or the ResourceLoaderGetConfigVars hook (for config variables
that don't change from page to page).

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to