diff options
| author | Shulhan <ms@kilabit.info> | 2024-05-12 15:41:46 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-05-12 16:32:39 +0700 |
| commit | 9d9185934024b1c82ee4d1bc43a88cbe09465361 (patch) | |
| tree | 7e63e18bc6b35b47361ec00e64858f5e1dd72154 | |
| parent | 8ec4ae80bccd318c4970cd5bdf7d471acaa7ff2c (diff) | |
| download | ciigo-9d9185934024b1c82ee4d1bc43a88cbe09465361.tar.xz | |
Release ciigo v0.13.0 (2024-05-12)v0.13.0
=== New features
* cmd/ciigo: add flag to set package and variable name for "embed"
The flag "-package-name" can be used to changes the default package
name inside the Go embed file. The flag "-var-name" can be used to
changes the default memfs variable name inside the Go embed file.
=== Enhancements
* all: fix HTML files always generated when HTMLTemplate is not set
If the path to HTMLTemplate option is not set, GoEmbed should convert
to HTML only if markup file is newer than HTML file or when HTML file
not exist.
* all: initialize memfs using New
When memfs not initialized using New, the [memfs.MemFS.PathNodes]
will be nil. This cause any Get on new file will return 404.
| -rw-r--r-- | CHANGELOG.adoc | 31 | ||||
| -rw-r--r-- | ciigo.go | 2 |
2 files changed, 32 insertions, 1 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e9e9515..4d3e04d 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -6,6 +6,37 @@ Shulhan <ms@kilabit.info> :sectanchors: :sectlinks: + +[#v0_13_0] +== ciigo v0.13.0 (2024-05-12) + +[#v0_13_0__new_features] +=== New features + +cmd/ciigo: add flag to set package and variable name for "embed":: ++ +The flag "-package-name" can be used to changes the default package name +inside the Go embed file. +The flag "-var-name" can be used to changes the default memfs variable +name inside the Go embed file. + + +[#v0_13_0__enhancements] +=== Enhancements + +all: fix HTML files always generated when HTMLTemplate is not set:: ++ +If the path to HTMLTemplate option is not set, GoEmbed should convert +to HTML only if markup file is newer than HTML file or when HTML file +not exist. + +all: initialize memfs using New:: ++ +When memfs not initialized using New, the [memfs.MemFS.PathNodes] will +be nil. +This cause any Get on new file will return 404. + + [#v0_12_0] == ciigo v0.12.0 (2024-04-04) @@ -27,7 +27,7 @@ const ( ) // Version define the latest tagged release of this module. -var Version = `0.12.0` +var Version = `0.13.0` // defExcludes define default files to be excludes on GoEmbed. var defExcludes = []string{ |
