Commit graph

6 commits

Author SHA1 Message Date
Jo-Philipp Wich
cd0bb63394 libs/web: remove leftover debugging code in template_parser.c 2012-11-25 19:18:15 +00:00
Jo-Philipp Wich
0e50aa690a libs/web: rewrite template engine, merge lmo library
- template parser: merge lmo library
	- template parser: rewrite to operate on memory mapped files
	- template parser: implement proper line number reporting on syntax errors
	- template parser: process translate tags directly and bypass Lua
	- template lmo: introduce load_catalog(), change_catalog() and close_catalog()
	- template lmo: rewrite index processing to operate directly on the memory mapped file
	- template lmo: implement binary search keys, reducing the lookup complexity to O(log n)
	- po2lmo: write sorted indixes when generating *.lmo archives
	- i18n: use the template parser for translations
	- i18n: stub load(), loadc() and clear()
	- i18n: map setlanguage() to load_catalog()
2012-11-25 19:17:55 +00:00
Jo-Philipp Wich
8f2a3f1dcc libs/web: prepare template parser, dispatcher and i18n class for upcoming po format change 2009-10-31 15:42:07 +00:00
Jo-Philipp Wich
67150c34a1 libs/web: template: fix spurious nil or false values that broke various templates 2009-08-05 00:52:51 +00:00
Jo-Philipp Wich
8acc6307bf libs/web: fix template parsing of default texts in i18n expressions 2009-07-26 23:23:32 +00:00
Jo-Philipp Wich
80a2dd2cc2 libs/web: add template parser reimplemented in C 2009-07-23 00:41:44 +00:00