stylesheet-async
parameter working with a collection of stylesheet paths.Readme - new section on service workers and PWA assets params.
License is now MIT.
Experimental service worker generation. Pass the same map you use
to generate a page and this function will generate a service worker
that will pre-cache all the assets found in the map.
Simple cache-busting included.
page-renderer.api/generate-service-worker
Two additional options:
renderable.sw-default-url
default route for your service worker, usually
the same as start_url
in your manifest.json
if you do a PWA.renderable.sw-add-assets
a vector with additional assets to pre-cachepage-renderer.api
namespace
page-renderer.core
plus generate-service-worker
and respond-service-worker
page-renderer.api/render-page
service-worker
keypage-renderer.core/render-page
load
event).stylesheet-async
option: now supports a collectionjs-module
option: now supports a collectionlang
param to render lang attr on the
<html>
tag and a HTTP-Equiv meta tag.page-renderer.core/render-page
Now provides default /favicon.png and cache-busts itpage-renderer.core/render-page
Render twitter meta if either :twitter-site
or :twitter-creator
are supplied.
Previously worked only if :twitter-site
was supplied.Can you improve this documentation? These fine people already did:
Ivan Fedorov & sharp.maestroEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close