This library has not yet been ported to the New Pico Engine

The Page Library

The Page library provides for access to environment variables. The Page library includes the functions env and url.

The env Function

The page:env function can be used as part of any KRL expression. To retrieve data about the pages environment.

The following parameters can be passed to page:env:

pre {
  ipAddr = page:env("ip");
}

The url Function

The page:url function can be used as part of any KRL expression. To retrieve data about the calling page url.

This gives data about the calling page URL (i.e. the page where KBX planted tags or on which they were manually planted). It does NOT give data about the Event Signal URL.

The following parameters can be passed to page:url:

pre {
  pageProtocol = page:url("protocol");
}