Skip to content

Commit 6eeeff4

Browse files
committed
Updated changelog.
1 parent 85db359 commit 6eeeff4

File tree

7 files changed

+37
-6
lines changed

7 files changed

+37
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ webgen new page "blog/first-post.md"
143143
webgen build
144144
```
145145

146-
LuaWebGen uses this folder structure for a website project:
146+
LuaWebGen uses this [folder structure](https://github.com/ReFreezed/LuaWebGen/wiki/Home#folder-structure) for a website project:
147147

148148
```
149149
my-website/ -- Root of the website project.

build/Changelog.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
Changelog
22
LuaWebGen
33

4+
v1.0 (2021-05-01)
5+
Embedded code:
6+
- Whitespace around code blocks can be trimmed away with '{{*' and '*}}'.
7+
- Code block parsing is a lot more robust (e.g. '{{fori {8,4,11}}}' now works).
8+
- Code blocks like '{{--foo}}' are no longer valid as '}}' is now part of the Lua comment.
9+
- Added '{{for < n}}' and 'fori < arr' for iterating backwards.
10+
- Removed '{{for -n}}' (which used to iterate backwards).
11+
- Fixed '{{some-url-here}}' not working with absolute URLs.
12+
API:
13+
- Added config.redirectionLayout for customizing redirection pages.
14+
- Added config.ignorePaths .
15+
- Added getOutputtedFiles().
16+
- generateFromTemplate() can now take page parameters as an argument. (This reduces the need for formatTemplate().)
17+
- Pages can use no layout by setting page.layout to an empty string.
18+
- The check for whether '{{expression}}' results in HTML or text is now stricter (i.e. resulting in text more often).
19+
- config.ignoreFiles and config.ignoreFolders no longer match things in the 'data' folder.
20+
- Removed 'isAny(valueToCompare,arrayOfValues)' variant. Calls need to be changed into 'isAny(valueToCompare,unpack(arrayOfValues))'.
21+
- Redirection functionality is more robust.
22+
- Updated generated HTML for redirection pages.
23+
- Renamed _WEBGEN_VERSION to WEBGEN_VERSION.
24+
- Fixed simplified 'for' loop only accepting numerals. It now accepts any value expression.
25+
- Fixed accessing valid globals in the main chunk in config.lua resulting in context error.
26+
- Fixed page properties being writable in layouts.
27+
- Fixed line numbers being wrong in some error messages.
28+
- Fixed possibility for internally generated Lua code to break because of function name shadowing.
29+
- Smaller bug fixes.
30+
431
v0.20 (2021-04-22)
532
- First "proper" release.
633
- Small fixes.

build/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ A blog post, my-first-post.md:
128128

129129
![Cute cat]({{ getCatImageUrl() }})
130130

131-
Page template, page.html:
131+
Page layout template, page.html:
132132

133133
{{include"header"}}
134134
{{include"navigation"}}

build/build.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ if doRelease then
248248
copyDirectoryRecursive("bin", outputDir.."/bin")
249249
copyDirectoryRecursive("lib", outputDir.."/lib")
250250
copyDirectoryRecursive("srcgen", outputDir.."/srcgen")
251-
copyDirectoryRecursive("testsite", outputDir.."/testsite", {".gitignore","output","logs"--[[,"Build.cmd"]]})
251+
copyDirectoryRecursive("testsite", outputDir.."/testsite", {".gitignore","logs","output","temp"--[[,"Build.cmd"]]})
252252
copyFile("temp/app.exe", values.exePath)
253253
copyFile("webgen.lua", outputDir.."/webgen.lua")
254254
copyFile("build/Changelog.txt", outputDir.."/_Changelog.txt")
@@ -265,7 +265,7 @@ if doRelease then
265265

266266
copyDirectoryRecursive("lib", outputDir.."/lib")
267267
copyDirectoryRecursive("srcgen", outputDir.."/srcgen")
268-
copyDirectoryRecursive("testsite", outputDir.."/testsite", {".gitignore","output","logs","Build.cmd"})
268+
copyDirectoryRecursive("testsite", outputDir.."/testsite", {".gitignore","logs","output","temp","Build.cmd"})
269269
copyFile("webgen.lua", outputDir.."/webgen.lua")
270270
copyFile("build/Changelog.txt", outputDir.."/_Changelog.txt")
271271
copyFile("build/README.txt", outputDir.."/_README.txt")

build/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.20.0
1+
1.0.0

src/app.lua2p

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ end
278278
--==============================================================
279279

280280
_G.scriptEnvironmentGlobals = {
281-
_WEBGEN_VERSION = WEBGEN_VERSION, -- @Depricated
281+
_WEBGEN_VERSION = WEBGEN_VERSION, -- @Deprecated
282282
DATA_FILE_EXTENSIONS = DATA_FILE_EXTENSIONS,
283283
IMAGE_EXTENSIONS = IMAGE_EXTENSIONS,
284284
WEBGEN_VERSION = WEBGEN_VERSION,

testsite/content/tests.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ One {{* "Space" }} Allowed
9595

9696
{{ "Allowed" }}
9797

98+
{{fori {5,99,- -8}}}
99+
- {{it}}
100+
{{end}}
101+
98102

99103

100104
## Value Expressions

0 commit comments

Comments
 (0)