Serge Bazanski | 5e695e8 | 2021-03-07 14:29:40 +0000 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") |
| 3 | |
| 4 | go_embed_data( |
| 5 | name = "templates_data", |
| 6 | srcs = glob(["*.html"]), |
| 7 | package = "templates", |
| 8 | flatten = True, |
| 9 | ) |
| 10 | |
| 11 | go_library( |
| 12 | name = "go_default_library", |
| 13 | srcs = [ |
| 14 | ":templates_data", # keep |
| 15 | ], |
| 16 | visibility = [ |
| 17 | "//hswaw/oodviewer:__pkg__", |
| 18 | ], |
| 19 | importpath = "code.hackerspace.pl/hscloud/hswaw/oodviewer/templates", |
| 20 | ) |