Documentation ¶
Index ¶
- func All() map[string]*Theme
- func CompileSass(sassFilePath string, sassVars string, outPath string) error
- func Dir() string
- func Exist(id string) bool
- func SetDir(path string)
- type Conf
- type Palette
- type Theme
- func (t *Theme) AssetExist(relativePath string) bool
- func (t *Theme) HaveSass() bool
- func (t *Theme) Palette(name string) *Palette
- func (t *Theme) Partials() ([]string, error)
- func (t *Theme) SassBuild(sassVars string, output string) error
- func (t *Theme) SassFile(subPath string) string
- func (t *Theme) SassFiles() ([]os.FileInfo, error)
- func (t *Theme) SassVars() (map[string]string, error)
- func (t *Theme) Template(id string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileSass ¶
CompileSass compiles given sass file
Types ¶
type Conf ¶
type Conf struct { ID string `json:"id"` Name string `json:"name"` Author string `json:"author,omitempty"` Homepage string `json:"homepage,omitempty"` Palettes []*Palette `json:"palettes,omitempty"` }
Conf represents a theme configuration
type Theme ¶
type Theme struct { ID string Dir string AssetsDir string TemplatesDir string PartialsDir string SassDir string Conf *Conf // contains filtered or unexported fields }
Theme represents a theme
func (*Theme) AssetExist ¶
AssetExist returns true if asset at given relative path exists in theme
func (*Theme) SassBuild ¶
SassBuild builds all sass files with given sass vars overwrites, and outputs result into given directory
Click to show internal directories.
Click to hide internal directories.