precompile static method

void precompile(
  1. String pattern
)

Compile pattern ahead of time so the first navigation pays nothing.

Called by NyRouter when a route is registered or updated.

Implementation

static void precompile(String pattern) {
  _segmentsFor(pattern);
}