display

package
v0.0.0-...-076d96f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2012 License: BSD-2-Clause-Views Imports: 16 Imported by: 0

Documentation

Overview

Module Display will execute the given "Display Points" ([]string found in uni.Dat["_points"]). If there is no "_points" set in uni.Dat, then it will execute the Display Point which name matches the http Request Path. A given Display Point can contain queries, they will be run, after that, a tpl file which matches the name of the Display Point will be executed as a Go template.

Caution: there is some slightly tricky (ugly?) hackage going on in this package at getFile/getTPath/getModTPath to support the logic behind the fallback files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeDisplay

func BeforeDisplay(uni *context.Uni)

func D

func D(uni *context.Uni)

Displays a display point.

func DErr

func DErr(uni *context.Uni, err error)

This is called if an error occured in a front hook.

func DisplayFallback

func DisplayFallback(uni *context.Uni, filep string) error

Tries to display a module file.

func DisplayFile

func DisplayFile(uni *context.Uni, filep string) error

Tries to display the relative filepath filep as either a template file or a module file.

func DisplayTemplate

func DisplayTemplate(uni *context.Uni, filep string) error

Tries to dislay a template file.

func GetFileAndConvert

func GetFileAndConvert(root, fi string, opt map[string]interface{}, host string, file_reader func(string) ([]byte, error)) ([]byte, error)

Does format conversions. Currently only: markdown -> html

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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