Skip to content

Registry

Registry object gives access to the content in the repository and also the pre-delivered content

Basic Usage

var response = require("http/v4/response");
var registry = require("platform/v4/registry");

var text = registry.getText("platform/v4/registry.js");

response.println(text);
response.flush();
response.close();

Functions


Function Description Returns
getContent(path) Gets the content of resource by path, as byte array array of bytes
getText(path) Gets the content of resource by path, as text string
find(path, pattern) Find resources under certain path (e.g. /) by pattern (e.g. *.js) array of strings