Documentation ¶
Index ¶
- type Context
- type Frame
- type Server
- func (s *Server) Listen() error
- func (s *Server) Open() error
- func (s *Server) ServeDirectory(w http.ResponseWriter, r *http.Request)
- func (s *Server) ServePreview(w http.ResponseWriter, r *http.Request)
- func (s *Server) ServeTemplate(w http.ResponseWriter, r *http.Request)
- func (s *Server) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func (*Server) ServeDirectory ¶
func (s *Server) ServeDirectory(w http.ResponseWriter, r *http.Request)
ServeDirectory renders a single mustache template which is to be found inside a specific directory. This directory is specified using command line argumens using the -t option.
Usually you wouldn't navigate to this page yourself, rather this endpoint will be called from the preview page.
func (*Server) ServePreview ¶
func (s *Server) ServePreview(w http.ResponseWriter, r *http.Request)
ServePreview renders the preview page with all templates inside the template directory as iframes. The template directory is specified using command line arguments with the -t option.
func (*Server) ServeTemplate ¶
func (s *Server) ServeTemplate(w http.ResponseWriter, r *http.Request)
ServeTemplate renders a single mustache template as defined by command line arguments using the -t option.
Click to show internal directories.
Click to hide internal directories.