Examples of contentAsString()


Examples of play.vfs.VirtualFile.contentAsString()

    VirtualFile js = WidgetManager.findJS(pkgName);
    if (js == null)
      notFound();
    else {
      response.contentType = "text/javascript";
      renderText(js.contentAsString());
    }
  }

  public static void json(String className, String endPointName)
      throws Exception {
View Full Code Here

Examples of play.vfs.VirtualFile.contentAsString()

      return html;

    VirtualFile htmlFile = WidgetManager.findHTML(packageName(),
        widgetName());
    if (htmlFile != null) {
      html = htmlFile.contentAsString();
      Cache.set(key, html, "5mn");
      return html;
    }
    return defaultWidgetHTML();
  }
View Full Code Here

Examples of yalp.vfs.VirtualFile.contentAsString()

                Matcher m = Pattern.compile("<<<\\s*\\{([^}]+)}\\s*").matcher(value.toString());
                m.find();
                String file = m.group(1);
                VirtualFile f = Yalp.getVirtualFile(file);
                if (f != null && f.exists()) {
                    serialized.put(prefix + "." + key.toString(), new String[]{f.contentAsString()});
                }
            } else {
                serialized.put(prefix + "." + key.toString(), new String[]{value.toString()});
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.