@anzaui/engine - v0.6.0
    Preparing search index...

    Function fragmentAllowed

    • Whether a fragment may render name under the fragments allowlist: empty allows every template; an entry ending in / allows that prefix, any other entry allows that exact name.

      Parameters

      Returns boolean

      true when name may be rendered as a fragment.

      fragmentAllowed(['feed/', 'widgets/clock.html'], 'feed/card.html');    // true
      fragmentAllowed(['feed/', 'widgets/clock.html'], 'layout/shell.html'); // false
      fragmentAllowed([], 'anything.html'); // true