Documentation ¶
Index ¶
- Constants
- Variables
- func AddControl(control string)
- func LoadControlCache(controls []string, jsDst string, compact bool, forceBuild bool)
- func LoadFileCache(filesMap map[string]string, outputDir string, forceBuild bool)
- func LoadHTMLCache(indexMap map[string]string, viewControls map[string]string, ...)
- func LoadJSCache(targetFile string, forceBuild bool)
- func RequiresUpdate(fname string) bool
- func RollbackUpdate(fname string)
- func SaveCache(targetFile string)
- func SaveFileCache(targetFile string)
- func SaveHTMLCache(targetFile string)
- func SetViewControl(fname string, control string)
- func StartRootUpdate(fname string)
- func SyncHTMLLastModifiedTimes()
- type Cache
- type ControlCache
- type ControlCacheEntry
- type FileCache
- type FileCacheEntry
- type HTMLCache
- func (c *HTMLCache) AddDependency(fname string, dep string)
- func (c *HTMLCache) HasUpstreamDependency(thisPath string, upstreamPath string) bool
- func (c *HTMLCache) RequiresUpdate(fname string) bool
- func (c *HTMLCache) Save() []byte
- func (c *HTMLCache) StartRootUpdate(fname string)
- func (c *HTMLCache) StartUpdate(fname string)
- func (c *HTMLCache) SyncLastModified()
- type HTMLCacheEntry
- type JSCache
- type JSCacheEntry
Constants ¶
View Source
const (
HTMLPPCACHEDIR = ".htmlppcache"
)
Variables ¶
View Source
var (
VERBOSITY = 0
)
Functions ¶
func AddControl ¶
func AddControl(control string)
func LoadControlCache ¶
func LoadFileCache ¶
func LoadHTMLCache ¶
func LoadHTMLCache(indexMap map[string]string, viewControls map[string]string, cssBundleURL string, jsBundleURL string, pxPerRem int, outputDir string, gitCommit string, compact bool, globalVars map[string]string, forceBuild bool)
age of the indexMap doesnt matter
func LoadJSCache ¶
func RequiresUpdate ¶
func RollbackUpdate ¶
func RollbackUpdate(fname string)
func SaveFileCache ¶
func SaveFileCache(targetFile string)
func SaveHTMLCache ¶
func SaveHTMLCache(targetFile string)
func SetViewControl ¶
func StartRootUpdate ¶
func StartRootUpdate(fname string)
func SyncHTMLLastModifiedTimes ¶
func SyncHTMLLastModifiedTimes()
Types ¶
type ControlCache ¶
type ControlCache struct { Compact bool Controls []string // Data contains all js files, not just controls Data map[string]ControlCacheEntry // contains filtered or unexported fields }
func (*ControlCache) AddDependency ¶
func (c *ControlCache) AddDependency(fname string, dep string)
func (*ControlCache) HasUpstreamDependency ¶
func (c *ControlCache) HasUpstreamDependency(thisPath string, upstreamPath string) bool
func (*ControlCache) RequiresUpdate ¶
func (c *ControlCache) RequiresUpdate(fname string) bool
func (*ControlCache) Save ¶
func (c *ControlCache) Save() []byte
func (*ControlCache) StartUpdate ¶
func (c *ControlCache) StartUpdate(fname string)
type ControlCacheEntry ¶
type ControlCacheEntry struct { Deps []string // contains filtered or unexported fields }
type FileCache ¶
type FileCache struct { TargetMap map[string]string Data map[string]FileCacheEntry }
func (*FileCache) AddDependency ¶
func (*FileCache) HasUpstreamDependency ¶
func (*FileCache) RequiresUpdate ¶
func (*FileCache) StartUpdate ¶
type FileCacheEntry ¶
type FileCacheEntry struct { }
type HTMLCache ¶
type HTMLCache struct { GitCommit string // if this changes -> rebuild all CSSBundleURL string // if this changes -> rebuild all JSBundleURL string // if this changes -> rebuild all PxPerRem int // if this changes -> rebuild all Compact bool // if this changes -> rebuild all GlobalVars map[string]string // if any of this changes -> rebuild all IndexMap map[string]string // abspath -> target abspath Data map[string]HTMLCacheEntry // abs src path as key }
func (*HTMLCache) AddDependency ¶
func (*HTMLCache) HasUpstreamDependency ¶
func (*HTMLCache) RequiresUpdate ¶
recursion must be on other function
func (*HTMLCache) StartRootUpdate ¶
func (*HTMLCache) StartUpdate ¶
for imports only, dont modify the css rules, because they are not needed
func (*HTMLCache) SyncLastModified ¶
func (c *HTMLCache) SyncLastModified()
type HTMLCacheEntry ¶
type JSCache ¶
type JSCache struct {
// contains filtered or unexported fields
}
func (*JSCache) AddDependency ¶
func (*JSCache) HasUpstreamDependency ¶
func (*JSCache) RequiresUpdate ¶
func (*JSCache) StartUpdate ¶
also use this for adding files
type JSCacheEntry ¶
type JSCacheEntry struct { Deps []string // exported // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.