blob: f902c0eb4f85b1c96484c4ec6c5d78e1b2834c1d [file] [log] [blame]
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__",
],
)