2014-05-05 15:55:27 -06:00
|
|
|
// 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.
|
2014-05-12 17:17:18 -06:00
|
|
|
Instructions for deployment to App Engine are in the README of the
|
2014-11-09 14:50:40 -07:00
|
|
|
golang.org/x/tools repository.
|
2014-05-05 15:55:27 -06:00
|
|
|
|
|
|
|
Usage of present:
|
|
|
|
-base="": base path for slide template and static resources
|
2014-06-17 19:23:08 -06:00
|
|
|
-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:
|
2014-12-11 19:58:46 -07:00
|
|
|
https://golang.org/wiki/NativeClient
|
2014-05-05 15:55:27 -06:00
|
|
|
|
|
|
|
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:
|
2014-11-09 14:50:40 -07:00
|
|
|
http://godoc.org/golang.org/x/tools/present
|
2014-05-05 15:55:27 -06:00
|
|
|
*/
|
2014-12-08 21:00:58 -07:00
|
|
|
package main // import "golang.org/x/tools/cmd/present"
|