asset

package
v0.0.0-...-ebdf1d9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 6 Imported by: 12

Documentation

Overview

Package asset contains FuncMap for template packages to provide asset paths with timestamps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Folder is the parent folder path for the asset folder
	Folder string
}

Info holds the config.

func (Info) Map

func (c Info) Map(baseURI string) template.FuncMap

Map returns a template.FuncMap. JS returns JavaScript tag with a timestamp. CSS returns stylesheet tag with a timestamp.

Jump to

Keyboard shortcuts

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