html

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ImageEmbedTemplate is the template for image embeds
	ImageEmbedTemplate = `` /* 154-byte string literal not displayed */

	// AudioEmbedTemplate is the template for audio embeds
	AudioEmbedTemplate = `
<audio controls><source src="%s" type="audio/mpeg">music is good for the soul</audio>`

	// VideoEmbedTemplate is the template for video embeds
	VideoEmbedTemplate = `` /* 234-byte string literal not displayed */

	// Table is the template for image embeds
	TableTemplate = `
<div class="imageblock">
<div class="title">%s</div>
<div class="content">
%s
</div>
</div>`

	// YoutubeEmbedPrefix is the prefix for youtube embeds
	YoutubeEmbedPrefix = "https://youtu.be/"
	// YoutubeEmbedTemplate is the template for youtube embeds
	YoutubeEmbedTemplate = `` /* 232-byte string literal not displayed */

	// SpotifyTrackEmbedPrefix is the prefix for spotify track embeds
	SpotifyTrackEmbedPrefix = "https://open.spotify.com/track/"
	// SpotifyTrackEmbedTemplate is the template for spotify track embeds
	SpotifyTrackEmbedTemplate = `` /* 176-byte string literal not displayed */

	// SpotifyPlaylistEmbedPrefix is the prefix for spotify playlist embeds
	SpotifyPlaylistEmbedPrefix = "https://open.spotify.com/playlist/"
	// SpotifyPlaylistEmbedTemplate is the template for spotify playlist embeds
	SpotifyPlaylistEmbedTemplate = `` /* 180-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func ExportPage

func ExportPage(page *internals.Page) string

ExportPage exports the page to HTML

func InitializeExporter

func InitializeExporter()

InitializeExporter initializes the constant tags

Types

This section is empty.

Jump to

Keyboard shortcuts

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