new jQuery Tmpl plugin doesn't seem to like namespaced functions

new jQuery Tmpl plugin doesn't seem to like namespaced functions

I was all excited to get up and running with the new official plugin jQuery Template ( http://api.jquery.com/category/plugins/templates/)

but I am hitting a brick wall on something:

I always group my JS stuff into objects to avoid any chance of name collision, as an example I would do something like :

  1. var NS = {};
  2. NS.Display = function($data, key) {
  3.       return $data[key];
  4. };

  5. // I normally WOULD NOT do this
  6. function GlobalDisplayFunction($data, key) {
  7.      return $data[key];
  8. }; 

etc etc....

the Template plugin says you can use an expression to generate output:

For more complex expressions it is preferable to place the expression within a function, then use   ${myFunction(a,b)}   to call the function, as in:
 
so my template could have:

  1. <li>${GlobalDisplay($data, 'Value')}</li>

and that works as the documentation says it should


but if I try to leverage my namespaced function, the template engine just crashes... full stoppage of JavaScript execution

  1. <li>${NS.Display($data, 'Value')}</li>
I've got a full example posted here on JSBin  ( run / edit)

Hoping to get some resolution on this... I stay away from polluting the global namespace as much as humanly possible

Thanks in advance