bootstrap

package
v0.0.0-...-b75375f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bootstrap implements some helper functions intended to be used with the Bootstrap front-end framework. See http://twitter.github.io/bootstrap/ for more details.

Importing this package has also some side-effects related to templates. It defines the following template functions:

fa <string>: returns the font awesome 4 (and hopefully future versions) icon named by string
e.g. {{ fa "external-link" } => <i class="fa fa-external-link"></i>

fa3 <string>: returns the font awesome 3 icon named by string
e.g. {{ fa3 "external-link" } => <i class="icon-external-link"></i>

It also adds parsers for the "bootstrap" asset key, which serves boostrap from http://www.bootstrapcdn.com. It receives a single argument with the desired bootstrap version. Both 2.x and 3.x are supported. e.g.

bootstrap: 3.0.0

This asset also supports the following options:

fontawesome (string): load also the specified Font Awesome version
e.g.: bootstrap|fontawesome=4.0.3: 3.0.2

nojs (bool): disables loading bootstrap's javascript library
e.g. bootstrap|nojs: 2.3.2

See gnd.la/template and gnd.la/template/assets for more information about template functions and the assets pipeline.

Index

Constants

View Source
const (
	ExtraSmall = iota - 2
	Small
	Medium
	Large
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alignment

type Alignment int
const (
	Left Alignment = iota
	Center
	Right
)

type Size

type Size int

func (Size) String

func (s Size) String() string

Directories

Path Synopsis
Package form implements a form renderer using Bootstrap.
Package form implements a form renderer using Bootstrap.

Jump to

Keyboard shortcuts

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