Skip to content

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…

License

Notifications You must be signed in to change notification settings

distalog/cookie-css

Repository files navigation

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.

About

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…

Topics

Resources

License

Stars

Watchers

Forks

Packages