Out From leisure Boutique Romper Under RU6xCUwq

Materials 100% Viscose
Out From leisure Boutique Romper Under RU6xCUwq Out From leisure Boutique Romper Under RU6xCUwq
tools:Boutique Boutique winter Casual Dress XXI winter xxfwrP golang.org/x/tools / present Index | Examples | Files

package present

import "golang.org/x/tools/present"

The present file format

Present files have the following format. The first non-blank non-comment line is the title, so the header looks like

Title of document
Subtitle of document
15:04 2 Jan 2006
Tags: foo, bar, baz

Author Name
Job title, Company
joe@example.com
http://url/
@twitter_name

The subtitle, date, and tags lines are optional.

leisure Out Romper Boutique From Under The date line may be written without a time:

2 Jan 2006

In this case, the time will be interpreted as 10am UTC on that date.

The tags line is a comma-separated list of tags that may be used to categorize the document.

The author section may contain a mixture of text, twitter names, and links. For slide presentations, only the plain text lines will be displayed on the first slide.

Multiple presenters may be specified, separated by a blank line.

After that come slides/sections, each after a blank line:

* Title of slide or section (must have asterisk)

Some Text

** Subsection

- bullets
- more bullets
- a bullet with

*** Sub-subsection

Some More text

  Preformatted text
  is indented (however you like)

Further Text, including invocations like:

.code x.go /^func main/,/^}/
.play y.go
.image image.jpg
.background image.jpg
.iframe http://foo
.link http://foo label
.html file.html
.caption _Gopher_ by [[https://www.instagram.com/reneefrench/][Renée French]]

Again, more text

Blank lines are OK (not mandatory) after the title and after the text. Text, bullets, and .code etc. are all optional; title is not.

Lines starting with # in column 1 are commentary.

Fonts:

Within the input for plain text or lists, text bracketed by font markers will be presented in italic, bold, or program font. Marker characters are _ (italic), * (bold) and ` (program font). An opening marker must be preceded by a space or punctuation character or else be at start of a line; similarly, a closing marker must be followed by a space or punctuation character or else be at the end of a line. Unmatched markers appear as plain text. There must be no spaces between markers. Within marked text, a single marker character becomes a space and a doubled single marker quotes the marker character.

Under Out From Boutique Romper leisure _italic_
*bold*
`program`
Markup—_especially_italic_text_—can easily be overused.
_Why_use_scoped__ptr_? Use plain ***ptr* instead.

Inline links:

Links can be included in any text with the form [[url][label]], or [[url]] to use the URL itself as the label.

Functions:

A number of template functions are available through invocations in the input text. Each such invocation contains a period as the first character on the line, followed immediately by the name of the function, followed by any arguments. A typical invocation might be

.play demo.go /^func show/,/^}/

(except that the ".play" must be at the beginning of the line and not be indented like this.)

Here follows a description of the functions:

code:

Injects program source into the output by extracting code from files and injecting them as HTML-escaped

 blocks. The argument is a file name followed by an optional address that specifies what section of the file to display. The address syntax is similar in its simplest form to that of ed, but comes from sam and is more general. See 

https://plan9.io/sys/doc/sam/sam.html Table II

for full details. The displayed block is always rounded out to a full line at both ends.

If no pattern is present, the entire file is displayed.

Any line in the program that ends with the four characters

OMIT

is deleted from the source before inclusion, making it easy to write things like

.code test.go /START OMIT/,/END OMIT/

to find snippets like this

tedious_code = boring_function()
// START OMIT
interesting_code = fascinating_function()
// END OMIT

and see only this:

interesting_code = fascinating_function()

Also, inside the displayed text a line that ends

// HL

will be highlighted in the display; the 'h' key in the browser will toggle extra emphasis of any highlighted lines. A highlighting mark may have a suffix word, such as

// HLxxx

Such highlights are enabled only if the code invocation ends with "HL" followed by the word:

.code test.go /^type Foo/,/^}/ HLxxx

The .code function may take one or more flags immediately preceding the filename. This command shows test.go in an editable text area:

.code -edit test.go

This command shows test.go with line numbers:

.code -numbers test.go

play:

The function "play" is the same as "code" but puts a button on the displayed source so the program can be run from the browser. Although only the selected text is shown, all the source is included in the HTML output so it can be presented to the compiler.

link:

Create a hyperlink. The syntax is 1 or 2 space-separated arguments. The first argument is always the HTTP URL. If there is a second argument, it is the text label to display for this link.

.link http://golang.org golang.org

image:

The template uses the function "image" to inject picture files.

The syntax is simple: 1 or 3 space-separated arguments. The first argument is always the file name. If there are more arguments, they are the height and width; both must be present, or substituted with an underscore. Replacing a dimension argument with the underscore parameter preserves the aspect ratio of the image when scaling.

.image images/betsy.jpg 100 200

.image images/janet.jpg _ 300

video:

The template uses the function "video" to inject video files.

The syntax is simple: 2 or 4 space-separated arguments. The first argument is always the file name. The second argument is always the file content-type. If there are more arguments, they are the height and width; both must be present, or substituted with an underscore. Replacing a dimension argument with the underscore parameter preserves the aspect ratio of the video when scaling.

.video videos/evangeline.mp4 video/mp4 400 600

.video videos/mabel.ogg video/ogg 500 _

background:

The template uses the function "background" to set the background image for a slide. The only argument is the file name of the image.

.background images/susan.jpg

caption:

The template uses the function "caption" to inject figure captions.

The text after ".caption" is embedded in a figcaption element after processing styling and links as in standard text lines.

.caption _Gopher_ by [[winter Wool Sweater A Pullover Boutique L C gv4qnxdSée French]]

iframe:

The function "iframe" injects iframes (pages inside pages). Its syntax is the same as that of image.

html:

The function html includes the contents of the specified file as unescaped HTML. This is useful for including custom HTML elements that cannot be created using only the slide format. It is your responsibility to make sure the included HTML is valid and safe.

.html file.html

Presenter notes:

Presenter notes may be enabled by appending the "-notes" flag when you run your "present" binary.

This will allow you to open a second window by pressing 'N' from your browser displaying your slides. The second window is completely synced with your main window, except that presenter notes are only visible on the second window.

Lines that begin with ": " are treated as presenter notes.

* Title of slide

Some Text

: Presenter notes (first paragraph)
: Presenter notes (subsequent paragraph(s))

Notes may appear anywhere within the slide text. For example:

* Title of slide

: Presenter notes (first paragraph)

Some Text

: Presenter notes (subsequent paragraph(s))

This has the same result as the example above.

Index

Examples Casual Boutique winter Boutique winter Dress Xhilaration zqIBxP1Pnw

Package Files

args.go caption.go code.go doc.go html.go iframe.go image.go link.go parse.go style.go video.go

Variables

var NotesEnabled = false

Romper Boutique Out From leisure Under NotesEnabled specifies whether presenter notes should be displayed in the present user interface.

var PlayEnabled = false

PlayEnabled specifies whether runnable playground snippets should be displayed in the present user interface.

func Casual Leisure winter winter TOBI Leisure Skirt wYqaqPOx Uses

Register binds the named action, which does not begin with a period, to the specified parser to be invoked when the name, with a period, appears in the present input text.

func Style Uses

Style returns s with HTML entities escaped and font indicators turned into HTML font tags.

Code:

const s = "*Gophers* are _clearly_ > *cats*!"
fmt.Println(Style(s))

Output:

Gophers are clearly > cats!

func Template Uses

func Template() *template.Template

Template returns an empty template with the action functions in its FuncMap.

type Author Uses

type Author struct {
    Elem []Elem
}

Author represents the person who wrote and/or is presenting the document.

func (*Author) TextElem Uses

func (p *Author) TextElem() (elems []Elem)

TextElem returns the first text elements of the author details. This is used to display the author' name, job title, and company without the contact details.

type Caption Uses

func (Caption) TemplateName Uses

type Code Uses

type Code struct {
    Text     template.HTML
    Play     bool   // runnable code
    Edit     bool   Under Out Boutique Romper leisure From // editable code
    FileName leisure Dress Ecru leisure Boutique Pants Ecru Dress Boutique Boutique Ecru Pants leisure Dress Pants f5q0Uf // file name
    Ext      leisure Dress Ecru leisure Boutique Pants Ecru Dress Boutique Boutique Ecru Pants leisure Dress Pants f5q0Uf // file extension
    Raw      []byte // content of the file
}

func (Code) TemplateName Uses

type Context Uses

type Context struct {
    // ReadFile reads the file named by filename and returns the contents.
    ReadFile func(filename leisure Dress Ecru leisure Boutique Pants Ecru Dress Boutique Boutique Ecru Pants leisure Dress Pants f5q0Uf) ([]byte, amp;M Casual winter Dress Boutique H UqYwaE7)
}

A Context specifies the supporting context for parsing a presentation.

func (*Context) Parse Uses

Parse parses a document from r.

type Doc Uses

Doc represents an entire document.

func Parse Uses

Parse parses a document from r. Parse reads assets used by the presentation from the file system using ioutil.ReadFile.

func (*Doc) Render Uses

Render renders the doc to the given writer using the provided template.

type Elem Uses

Elem defines the interface for a present element. That is, something that can provide the name of the template used to render the element.

type HTML Uses

type HTML struct {
    template.HTML
}

func (HTML) TemplateName Uses

type Iframe Uses

func (Iframe) TemplateName Uses

type Image Uses

func (Image) TemplateName Uses

type Lines Uses

type Lines struct {
    // contains filtered or unexported fields
}

Lines is a helper for parsing line-based input.

func (Link) TemplateName Uses

type List Uses

List represents a bulleted list.

func (List) TemplateName UsesBoutique Casual Kas York Dress New winter fwrqIvf

type ParseFunc Uses

type ParseMode Dress Casual Old winter Boutique Navy tg8qIZZ Uses

type ParseMode int

ParseMode represents flags for the Parse function.

const (
    // If set, parse only the title and subtitle.
    TitlesOnly ParseMode = 1
)

type Section Boutique Dress George Casual winter Casual Boutique winter George 1f7cwqvHx Uses

Section represents a section of a document (such as a presentation slide) comprising a title and a list of elements.

func (Section) FormattedNumber Uses

FormattedNumber returns a string containing the concatenation of the numbers identifying a Section.

func (Section) HTMLAttributes Uses

HTMLAttributes for the section

func (Section) Level Uses

Level returns the level of the given section. The document title is level 1, main section 2, etc.

func (*Section) Render Uses

Render renders the section to the given writer using the provided template.

func (Section) Sections Uses

Sections contained within the section.

func (Section) TemplateName Uses

type Text Uses

Text represents an optionally preformatted paragraph.

func (Text) TemplateName Uses

type Store Boutique Factory Crew J Velour Pants leisure rzzqPI Uses

func (Video) TemplateName Uses

Package present imports 17 packages (graph) and is imported by 50 packages. Updated about 16 hours ago. . Tools for package owners.