From 24f8f2715c0a864fe3279530ccf9a4412535e515 Mon Sep 17 00:00:00 2001 From: Jonathon Menz Date: Mon, 3 Oct 2016 09:36:47 -0700 Subject: [PATCH] DOCS Introduce TemplateGlobalProvider --- .../02_Developer_Guides/01_Templates/02_Common_Variables.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/01_Templates/02_Common_Variables.md b/docs/en/02_Developer_Guides/01_Templates/02_Common_Variables.md index af2d798f2..373abdda0 100644 --- a/docs/en/02_Developer_Guides/01_Templates/02_Common_Variables.md +++ b/docs/en/02_Developer_Guides/01_Templates/02_Common_Variables.md @@ -8,7 +8,9 @@ exhaustive list. From your template you can call any method, database field, or currently in scope as well as its' subclasses or extensions. Knowing what methods you can call can be tricky, but the first step is to understand the scope you're in. Scope is -explained in more detail on the [syntax](syntax#scope) page. +explained in more detail on the [syntax](syntax#scope) page. Many of the methods listed below can be called from any +scope, and you can specify additional static methods to be available globally in templates by implementing the +[api:TemplateGlobalProvider] interface.
Want a quick way of knowing what scope you're in? Try putting `$ClassName` in your template. You should see a string