Changeset 87 in code for trunk


Ignore:
Timestamp:
Apr 3, 2024, 11:17:16 PM (14 months ago)
Author:
Izuru Yakumo
Message:

Add support for disabling features at build time

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r80 r87  
    55GOOS ?= `go env GOOS`
    66VERSION ?= `git describe --tags`
    7 
    87build:
    98        go build ${GOFLAGS} ./cmd/aya
  • trunk/README.md

    r84 r87  
    1616## Installation
    1717
    18 Build it manually assuming you have Go (>=1.17) installed:
     18Build it manually provided you have Go (>=1.17) installed:
    1919
    2020        $ go install marisa.chaotic.ninja/aya/cmd/aya@latest (1)
     
    2828but it should not be a problem unless you use it on a page.
    2929
     30You can also disable certain features at build time, with the `-tags` switch.
     31Currently, these tags are available: `noamber`, `nogcss`.
     32See `go help buildconstraint` for more details.
     33
    3034## Ideology
    3135
     
    3640in the `.aya` subdirectory.
    3741
    38 Define variables in the header of the content files using [YAML](https://www.yaml.io) :
     42Define variables in the header of the content files using [YAML](https://noyaml.com) :
    3943
    4044```markdown
  • trunk/cmd/aya/amber.go

    r79 r87  
     1//go:build !noamber
    12// Render .amber files into .html
    23package main
  • trunk/cmd/aya/gcss.go

    r79 r87  
     1//go:build !nogcss
    12// Render .gcss files into .css
    23package main
Note: See TracChangeset for help on using the changeset viewer.