Global

Members

cacheIDs :Array.<string>

Version-appended cacheName

Source:
Type:
  • Array.<string>

coreID :string

The key for core assets in CacheStorage

Source:
Type:
  • string

css :Array.<string>

Relative URLs of stylesheets to cache

Source:
Type:
  • Array.<string>

data

Acts as front matter data in JavaScript templates

Source:
See:

data

Acts as front matter in JavaScript templates

Source:
See:

data

Acts as front matter data in JavaScript template files

Source:
See:

data

Acts as front matter data in JavaScript templates

Source:
See:

data

Acts as front matter in JavaScript templates

Source:
See:

fonts :Array.<string>

Relative URLs of font files to cache

Source:
Type:
  • Array.<string>

images :Array.<string>

Relative URLs of images to cache

Source:
Type:
  • Array.<string>

imagesID :string

The key for images pages in CacheStorage

Source:
Type:
  • string

pages :Array.<string>

Relative URLs of pages to cache

Source:
Type:
  • Array.<string>

pagesID :string

The key for HTML pages in CacheStorage

Source:
Type:
  • string

version :string

The service worker version

Source:
Type:
  • string

Methods

(async) addToCache(request, response, cacheID) → {Promise}

Add a requested resource to CacheStorage

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
requestObject.<Request>

The request from a fetch event

responseObject.<Response>

The response to pair with the request

cacheIDstring

The key for the target cache

Returns:
Type:
Promise

Adds request/response key/value pairs to the cache

awardCard(degree) → {string}

Defines markup for an award or honor

Source:
Parameters:
NameTypeDescription
degreeObject

Data for an educational degree program

Returns:
Type:
string

HTML

(async) cacheCoreAssets() → {function}

Add core assets to CacheStorage

Since:
  • 1.0.0
Source:
Returns:
Type:
function

Add response objects to a given cache

(async) clearCache() → {function}

Clear CacheStorage

Since:
  • 1.0.0
Source:
Returns:
Type:
function

Sets this service worker for the client

concertWork(work) → {string}

Defines markup for a composer’s stage works

Source:
Parameters:
NameTypeDescription
workObject

Global data for a concert work

Returns:
Type:
string

HTML

degreeCard(degree) → {string}

Defines markup for a degree program listing

Source:
Parameters:
NameTypeDescription
degreeObject

Data for an educational degree program

Returns:
Type:
string

HTML

envCSS(fileSlug) → {string}

Determine which CSS file to load based on environment variables

Source:
Parameters:
NameTypeDescription
fileSlugstring

File slug for stylesheet in the css/ directory

Returns:
Type:
string

Path to environment CSS

(async) fetchFromNetwork(event) → {Object}

Fetch a resource from the network to add to the appropriate cache

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
eventObject.<Event>

A fetch event

Returns:
Type:
Object

The response object

listLang(Language) → {string}

List language proficiency

Source:
Parameters:
NameTypeDescription
LanguageArray.<Object>

data

Returns:
Type:
string

HTML

(async) networkFirst(event) → {Object|Promise}

Cache items fetched from the network

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
eventObject.<Event>

A fetch event

Returns:
Type:
Object | Promise

The response object or the cached object

(async) offlineFirst(event) → {Object|function}

Check the CacheStorage before fetching a resource from the network

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
eventObject.<Event>

A fetch event

Returns:
Type:
Object | function

The cached object or the response from the network

Defines markup for navigation links based on the current page

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
itemObject

An item in an Eleventy collection

pageObject

Eleventy’s data.page object

Returns:
Type:
string

HTML

removeFromCache(keys) → {void}

Remove keys from CacheStorage

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
keysArray.<string>

Names of Cache objects to remove

Returns:
Type:
void

render() → {string}

Defines markup for the 404 page

Source:
See:
Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the base template, which wraps around other templates

Since:
  • 1.0.0
Source:
See:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the main content

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the contact page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render() → {string}

The content of the template

Source:
Returns:
Type:
string

The rendered template

render(data) → {string}

Defines markup for the Accessiblity Statement page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the colophon page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the Copyright Notice page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the Privacy Policy page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the Terms of Use page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the repertoire page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {String}

Defines markup for my singer program bio

Source:
Parameters:
NameTypeDescription
dataObject

11ty’s data object

Returns:
Type:
String

HTML

render(data) → {string}

Defines markup for the repertoire page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines the markup for the speaking page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render() → {string}

Defines markup for a link to a social media account

Source:
Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the articles listing page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render() → {string}

Defines markup for my curriculum vitae

Source:
See:
Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the papers listing page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines the markup for the software template

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render(data) → {string}

Defines markup for the home page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

render()(data) → {String}

Defines markup for pages

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
String

HTML

render()(data) → {string}

Defines markup for the syllabi listings page

Source:
Parameters:
NameTypeDescription
dataObject

Eleventy’s data object

Returns:
Type:
string

HTML

roleCard(degree) → {string}

Defines markup for a degree program listing

Source:
Parameters:
NameTypeDescription
degreeObject

Data for an educational degree program

Returns:
Type:
string

HTML

stageWork(work) → {string}

Defines markup for a composer’s stage works

Source:
Parameters:
NameTypeDescription
workObject

Global data for a stage work

Returns:
Type:
string

HTML

syllabusCard(syllabus) → {string}

Define markup for a syllabus listing

Source:
Parameters:
NameTypeDescription
syllabusObject

A syllabus data object

Returns:
Type:
string

HTML

trimYear(year) → {string}

Trim a four-digit year to two digits

Source:
Parameters:
NameTypeDescription
yearnumber | string

Four-digit year

Returns:
Type:
string

The year’s last two digits