community: github.com/documize/community/domain/template Index | Files

package template

import "github.com/documize/community/domain/template"

Index

Package Files

endpoint.go

type Handler Uses

type Handler struct {
    Runtime *env.Runtime
    Store   *store.Store
    Indexer indexer.Indexer
}

Handler contains the runtime information such as logging and database.

func (*Handler) SaveAs Uses

func (h *Handler) SaveAs(w http.ResponseWriter, r *http.Request)

SaveAs saves existing document as a template.

func (*Handler) SavedList Uses

func (h *Handler) SavedList(w http.ResponseWriter, r *http.Request)

SavedList returns all templates saved by the user

func (*Handler) Use Uses

func (h *Handler) Use(w http.ResponseWriter, r *http.Request)

Use creates new document using a saved document as a template. If template ID is ZERO then we provide an Empty Document as the new document.

Package template imports 25 packages (graph) and is imported by 1 packages. Updated 2019-11-13. Refresh now. Tools for package owners.