epformcard

package
v1.162.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package epformcard is what the tile and PDF renderers draw in place of a form an asset embeds (#2431).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Card

func Card(endpoint string) []byte

Card is the page drawn in place of the form an endpoint serves.

func EmbeddedPage

func EmbeddedPage(u *url.URL, own bool) (string, bool)

EmbeddedPage reports the endpoint u is the embedded form page of: a path of epform.PagePrefix and one endpoint name. On the rendered page's own origin that is the platform's form page whatever its query: a tile's document names it there, rewritten with no query. Elsewhere it must carry the embed marker the platform writes into a served asset, which is how a printed document names it, at the deployment's public address; the marker is the platform's alone, so another site's /forms/ page is left to load.

func RenderedCard

func RenderedCard(u *url.URL, own bool) (headless.File, bool)

RenderedCard is what a renderer draws in place of an embedded form page, for headless.Page.Substitute: the card when u is one, and false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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