File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed
Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 11Changelog
22LuaWebGen
33
4+ v1.5 (2021-07-08)
5+ - Added new Markdown parser (for GitHub Flavored Markdown). Markdown can now contain tables and some other new things.
6+ - Added data parser for plain text files (*.txt). (The string contents are just returned as-is.)
7+ - Added functions: xml.decodeEntities()
8+ - Added settings: xml.htmlAllowNoAttributeValue, xml.htmlScrambleEmailAddresses
9+ - 'toml' and 'json' are now aliases for their .parse() functions.
10+
411v1.4 (2021-06-01)
512- Added syntax for heredoc strings.
613- Added functions: percent(), urlRaw().
Original file line number Diff line number Diff line change @@ -117,31 +117,32 @@ A blog post, my-first-post.md:
117117 Lorem ipsum dolor sit amet, consectetur adipiscing elit.
118118 Duis nec justo mollis, varius nulla sed, commodo nibh.
119119
120- Foot is {{foot}}<br>
121- 1 + 2 * 3 = {{1+2*3}}<br>
122- Current year is {{os.date"%Y"}}
120+ Foot is {{ foot }}<br>
121+ 1 + 2 * 3 = {{ 1+2*3 }}<br>
122+ Current year is {{ os.date"%Y" }}
123123
124124 ## List of Cats
125125
126- {{for i, cat in ipairs(data.myCats)}}
127- - Cat {{i }} is named {{cat.name}}.
128- {{end}}
126+ {{ for i, cat in ipairs(data.myCats) }}
127+ - Cat {{ i }} is named {{ cat.name }}.
128+ {{ end }}
129129
130130  }})
131131
132132Page layout template, page.html:
133133
134- {{include"header"}}
135- {{include"navigation"}}
134+ {{ include"header" }}
135+ {{ include"navigation" }}
136136
137137 <main>
138- <h1 id="{{urlize(page.title)}}">{{page.title}}</h1>
139- {{page.content}}
138+ <h1 id="{{ urlize(page.title) }}">{{ page.title }}</h1>
139+ {{ page.content }}
140140 </main>
141141
142- {{include"footer"}}
142+ {{ include"footer" }}
143143
144- See more examples in the [repository](https://github.com/ReFreezed/LuaWebGen/tree/master/examples).
144+ See more examples in the repository:
145+ https://github.com/ReFreezed/LuaWebGen/tree/master/examples
145146
146147
147148
Original file line number Diff line number Diff line change 1- 1.4 .0
1+ 1.5 .0
You can’t perform that action at this time.
0 commit comments