themekit: github.com/Shopify/themekit/src/static Index | Files | Directories

package static

import "github.com/Shopify/themekit/src/static"

Package static allows for the bundling of static assets into a binary. This allows themekit to bundle files from a theme for generating a new theme.

Index

Package Files

bundle.go unbundle.go

func Bundle Uses

func Bundle(src, dst string) error

Bundle takes a directory path and will compress all the data into a single go file with zip data at the dst path.

func Register Uses

func Register(data string)

Register will set the zip data that can be decompressed

func Unbundle Uses

func Unbundle(ctx *cmdutil.Ctx) error

Unbundle will saftely put all files in place without overwriting files that already exist

Directories

PathSynopsis
cmd

Package static imports 12 packages (graph) and is imported by 3 packages. Updated 2018-10-17. Refresh now. Tools for package owners.