formposthtml

package
v0.36.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package formposthtml defines HTML templates used by the Supervisor. nolint: gochecknoglobals // This package uses globals to ensure that all parsing and minifying happens at init.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentSecurityPolicy

func ContentSecurityPolicy() string

ContentSecurityPolicy returns the Content-Security-Policy header value to make the Template() operate correctly.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src#:~:text=%27%3Chash-algorithm%3E-%3Cbase64-value%3E%27.

func Template

func Template() *template.Template

Template returns the html/template.Template for rendering the response_type=form_post response page.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL