epformcard

package
v1.167.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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