Serge Bazanski | a767467 | 2021-05-30 21:09:34 +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", |
| 6 | srcs = [ |
| 7 | "about.html", |
| 8 | "about_en.html", |
| 9 | "basic.html", |
| 10 | "header.html", |
| 11 | "main.html", |
| 12 | "rotimate_at.html", |
| 13 | "subscribe.html", |
| 14 | "subscribe_en.html", |
| 15 | ], |
| 16 | package = "templates", |
| 17 | ) |
| 18 | |
| 19 | # keep |
| 20 | go_library( |
| 21 | name = "templates_go", |
| 22 | srcs = [":templates"], |
| 23 | importpath = "code.hackerspace.pl/hscloud/hswaw/site/templates", |
| 24 | visibility = ["//visibility:public"], |
| 25 | ) |