mirror of
https://github.com/golang/go
synced 2024-11-05 16:06:10 -07:00
5ebbcd132f
Rewrite performed with this command: sed -i '' 's_code.google.com/p/go\._golang.org/x/_g' \ $(grep -lr 'code.google.com/p/go.' *) LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/170920043
32 lines
1.3 KiB
Go
32 lines
1.3 KiB
Go
// Copyright 2011 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
/*
|
|
Present displays slide presentations and articles. It runs a web server that
|
|
presents slide and article files from the current directory.
|
|
|
|
It may be run as a stand-alone command or an App Engine app.
|
|
Instructions for deployment to App Engine are in the README of the
|
|
golang.org/x/tools repository.
|
|
|
|
Usage of present:
|
|
-base="": base path for slide template and static resources
|
|
-http="127.0.0.1:3999": HTTP service address (e.g., '127.0.0.1:3999')
|
|
-nacl=false: use Native Client environment playground (prevents non-Go code execution)
|
|
-orighost="": host component of web origin URL (e.g., 'localhost')
|
|
-play=true: enable playground (permit execution of arbitrary user code)
|
|
|
|
The setup of the Go version of NaCl is documented at:
|
|
https://code.google.com/p/go-wiki/wiki/NativeClient
|
|
|
|
Input files are named foo.extension, where "extension" defines the format of
|
|
the generated output. The supported formats are:
|
|
.slide // HTML5 slide presentation
|
|
.article // article format, such as a blog post
|
|
|
|
The present file format is documented by the present package:
|
|
http://godoc.org/golang.org/x/tools/present
|
|
*/
|
|
package main
|