/cookie-css

hapi handler to allow injecting CSS from cookies. Use it to create an endpoint that will serve CSS generated from the cookies it receive. Combined with cookie-param-handler it allows e.g. to easily display dismissable consent forms on top of existing static contents with minimum effort. Useful for consent screens that have to work whether or not Javascript is available and enabled on the client.

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

cookie-css

hapi handler to allow injecting CSS from cookies.

Use it to create an endpoint that will serve CSS generated by the cookies it receive.

Combined with cookie-param-handler it allows for instance to easily display dismissable consent forms on top of existing static contents with minimum efforts.

It is specially useful to create consent screens that have to work whether or not Jaascript is available and enabled on the client.

See code in the example directory for usage.