code: public static RawData escape(ITemplate template, Object o) {
          if (empty(o)) return RawData.NULL;
          Escape escape;
          if (null != template) {
              escape = template.__curEscape();
          } else {
              RythmEngine engine = RythmEngine.get();
              if (null != engine) {
                  escape = engine.conf().defaultCodeType().escape();
              } else {
                  escape = Escape.RAW;
              }
          }
          return escape.apply(o);
      }
docs: The template implicit argument version of {@link #escape(Object)}
  
  @param template
  @param o
  @return escaped data