forked from hswaw/hscloud
21 lines
482 B
Python
21 lines
482 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data")
|
|
|
|
go_embed_data(
|
|
name = "templates_data",
|
|
srcs = glob(["*.html"]),
|
|
flatten = True,
|
|
package = "templates",
|
|
)
|
|
|
|
go_library(
|
|
name = "templates",
|
|
srcs = [
|
|
":templates_data", # keep
|
|
],
|
|
importpath = "code.hackerspace.pl/hscloud/hswaw/oodviewer/templates", # keep
|
|
visibility = [
|
|
"//hswaw/oodviewer:__pkg__",
|
|
],
|
|
)
|