dc_section

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebHeader = `---
layout: {{.Layout}}
title: {{.Title}}
lang: {{.Lang}}
---

{{.Body}}
`
)

Variables

This section is empty.

Functions

func Generate

func Generate(media dc_index.MediaType, layout LayoutType, mc app_msg_container.Container, doc Document) string

Types

type Document

type Document interface {
	DocId() dc_index.DocId
	DocDesc() app_msg.Message
	Sections() []Section
}

type LayoutType

type LayoutType int
const (
	LayoutPage LayoutType = iota
	LayoutHome
	LayoutCommand
)

type Section

type Section interface {
	Title() app_msg.Message
	Body(ui app_ui.UI)
}

Jump to

Keyboard shortcuts

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