render

package
v0.0.0-...-079d604 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertURL

func ConvertURL(dest string) string

ConvertURL converts a URL from a relative into an absolute location.

func ConvertURLRelative

func ConvertURLRelative(dest string) string

ConvertURLRelative converts a URL to a better relative location (i.e. one that works without the host but keeps the trailing path).

func ConvertURLWithData

func ConvertURLWithData(dest string, data interface{}) string

ConvertURLWithData merges a relative URL into an absolute one, also templating as needed.

func FromContext

func FromContext(ctx context.Context) *render.Render

FromContext retrieves the renderer from the context.

func NewContext

func NewContext(ctx context.Context, r *render.Render) context.Context

NewContext adds the renderer to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL