aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow {% if VALUE1 == VALUE2 %}, with two definesPalmer Dabbelt2015-10-261-3/+3
| | | | | | | | | | | | | | | I was surprised to see that blogc doesn't support testing for equality between two defined values, it just supports comparison between a variable and a constant string. I want to be able to compare two variables so I can build the same source with different "-D" argument on the command line to produce different outputs. This patch adds support for this pattern. I changed the parser to include the '"' at the beginning and end of a string, which allows the renderer to determine if the user passed in a string or a variable name. This is a bit hacky and causes some of the tests to fail -- these tests look at the string values coming out of the parser. I updated the tests to match the new behavior.
* datetime-parser: improve error handlingRafael G. Martins2015-10-241-39/+39
|
* datetime-parser: fixed strptime error handlingRafael G. Martins2015-10-241-0/+45
|
* datetime-parser: initial implementation. not used yetRafael G. Martins2015-10-241-0/+631
|
* error: improved error reporting for parsersRafael G. Martins2015-10-243-27/+78
| | | | it will now report the line and the approximate position of the error.
* error: added missing test for crlfRafael G. Martins2015-10-231-0/+13
|
* tempalte-parser: added tests with \r\n line endingsRafael G. Martins2015-10-221-0/+71
|
* source-parser: handle \r\n line endings properlyRafael G. Martins2015-10-221-0/+32
|
* content-parser: handle \r\n line endings properlyRafael G. Martins2015-10-221-2/+500
|
* content-parser: added missing testRafael G. Martins2015-10-121-1/+3
|
* content-parser: added id attributes to headersRafael G. Martins2015-10-122-23/+51
| | | | the id is a slugified version of the (unparsed) header content.
* renderer: accept empty list of files with -lRafael G. Martins2015-10-071-0/+30
|
* source-parser: fixed error messageRafael G. Martins2015-09-191-1/+1
|
* source-parser: forbid BLOGC_VERSION variable in source filesRafael G. Martins2015-08-141-0/+18
|
* content-parser: implemented multiline support for listsRafael G. Martins2015-08-131-7/+89
|
* content-parser: fixed start_state bug.Rafael G. Martins2015-07-091-2/+2
|
* content-parser: fixed bug when using inline delim in link titleRafael G. Martins2015-07-041-0/+8
|
* tests: test functions must be marked as staticRafael G. Martins2015-06-131-22/+22
|
* content-parser: implemented excerpt, and now for good!Rafael G. Martins2015-06-133-48/+219
|
* Revert "added content excerpt support"Rafael G. Martins2015-06-122-85/+6
| | | | This reverts commit 1851274f9524c462806d6ab64e024effb0392231.
* added content excerpt supportRafael G. Martins2015-06-112-6/+85
|
* content-parser: added "automatic" linksRafael G. Martins2015-06-101-2/+33
|
* content-parser: fixed inline parserRafael G. Martins2015-05-291-4/+66
|
* source-parser: fixed reserved variablesRafael G. Martins2015-05-281-0/+90
|
* loader: implemented pagination filterRafael G. Martins2015-05-281-0/+469
|
* loader: implemented tag filterRafael G. Martins2015-05-271-0/+47
|
* content-parser: random fixes and more tests for inline content parserRafael G. Martins2015-05-271-0/+200
|
* content-parser: random fixes, more testsRafael G. Martins2015-05-271-0/+144
|
* fixed copyrightRafael G. Martins2015-05-257-7/+7
|
* content-parser: more testsRafael G. Martins2015-05-191-0/+126
|
* content-parser: fix and test horizontal rulesRafael G. Martins2015-05-181-0/+59
|
* source-parser: fixed reserved variablesRafael G. Martins2015-05-181-0/+72
|
* renderer: added more testsRafael G. Martins2015-05-181-1/+213
|
* renderer: implemented if statementsRafael G. Martins2015-05-181-2/+12
|
* template-parser: convert "if" operator into enumRafael G. Martins2015-05-171-3/+3
|
* template-parser: minor fixes. testsRafael G. Martins2015-05-171-2/+36
|
* template-parser: added real if statements. ignored by renderer for nowRafael G. Martins2015-05-172-10/+45
|
* template-parser: if -> ifdef, if not -> ifndefRafael G. Martins2015-05-172-69/+53
|
* content-parser: implemented line breaksRafael G. Martins2015-05-121-2/+2
|
* fixing gcc stupidityRafael G. Martins2015-05-091-3/+3
|
* raise warning if user provided DATE for one source file, but not for all ↵Rafael G. Martins2015-05-091-0/+56
| | | | source files
* loader: added testsRafael G. Martins2015-05-091-3/+140
|
* added global variables with date/filename on first and last postRafael G. Martins2015-05-091-8/+6
|
* renderer: respect local scopeRafael G. Martins2015-05-081-0/+33
|
* content-parser: more random stuffRafael G. Martins2015-05-072-93/+58
|
* content-parser: lots of random stuffRafael G. Martins2015-05-071-2/+8
|
* content-parser: actually use inline parserRafael G. Martins2015-05-061-1/+1
|
* content-parsed: started inline parserRafael G. Martins2015-05-061-2/+18
|
* content-parser: minor fixes. added testsRafael G. Martins2015-05-041-0/+231
|
* content-parser: implemented more block elementsRafael G. Martins2015-05-041-0/+16
|