GetWebHareResource (open)

Get a WebHare resource (like GetHareScriptResource, but adds support for site::, whfsbyid:: etc)

Syntax

LOADLIB "mod::system/lib/resources.whlib";

BLOB FUNCTION GetWebHareResource(STRING resourcepath, RECORD options)

Parameters

STRING resourcepath

Resource path

RECORD options

Options

allowmissing

If set to TRUE, don't throw if the resource doesn't exist but return a DEFAULT BLOB

Return value

BLOB

Contents of resource file