aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.c
Commit message (Collapse)AuthorAgeFilesLines
* *: fixed includesRafael G. Martins2016-07-071-6/+2
| | | | | this refactoring was done with the help of the 'include-what-you-use' program. if this breaks the build for you, please report!
* renderer: utils: fixed memory bugs found by clang static analyzerRafael G. Martins2016-07-051-3/+5
|
* template-parser: renderer: implemented 'else' support in templatesRafael G. Martins2016-07-031-2/+47
| | | | | | | | | yeah, this is stupid. after more than 320 commits and 26 releases, we finally support the 'else' statement in the template engine. I don't know if I'm dumb or what, but it took me that long to find a "simple" solution to this basic issue. yep, no more `{% ifdef FOO %}...{% endif %}{% ifndef FOO %}...{% endif %}` blocks. but seriously, who cares?! :/
* renderer: added support to truncate variables.Rafael G. Martins2016-05-301-8/+54
| | | | this commit also documents variable formatters properly.
* remove squareball for goodRafael G. Martins2016-04-271-1/+1
|
* Revert "*: use squareball error infrastructure"Rafael G. Martins2016-04-271-2/+2
| | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4.
* *: use squareball error infrastructureRafael G. Martins2016-03-131-2/+2
|
* build: replace src/utils with squareballRafael G. Martins2016-02-261-34/+34
|
* renderer: fix bug when 'if' evals to false after 'if' evals to trueRafael G. Martins2016-01-251-5/+5
|
* fixed copyrightRafael G. Martins2016-01-081-1/+1
|
* renderer: handle FOREACH_ITEM as a normal variableRafael G. Martins2016-01-081-9/+13
|
* renderer: foreach variables should be splitted in spaces rather than commasRafael G. Martins2015-12-291-4/+8
|
* man: renderer: template-parser: added foreach iterator supportRafael G. Martins2015-12-291-0/+71
|
* Revert "build: removing src/utils and replacing with squareball"Rafael G. Martins2015-12-231-23/+23
| | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646.
* build: removing src/utils and replacing with squareballRafael G. Martins2015-12-231-23/+23
| | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils
* renderer: improved support for comparision between varsRafael G. Martins2015-10-281-59/+55
|
* Allow {% if VALUE1 == VALUE2 %}, with two definesPalmer Dabbelt2015-10-261-2/+20
| | | | | | | | | | | | | | | 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-21/+9
|
* renderer: accept empty list of files with -lRafael G. Martins2015-10-071-1/+11
|
* fixed copyrightRafael G. Martins2015-05-251-1/+1
|
* renderer: implemented if statementsRafael G. Martins2015-05-181-8/+34
|
* template-parser: if -> ifdef, if not -> ifndefRafael G. Martins2015-05-171-4/+4
|
* added global variables with date/filename on first and last postRafael G. Martins2015-05-091-8/+28
|
* renderer: respect local scopeRafael G. Martins2015-05-081-2/+7
|
* implemented datetime parsing/formattingRafael G. Martins2015-04-281-18/+73
|
* added global variable supportRafael G. Martins2015-04-271-31/+49
|
* template parser: added "if not" supportRafael G. Martins2015-04-231-2/+12
|
* refactored blocksRafael G. Martins2015-04-211-14/+12
| | | | | | | | | - changed block names: - single_source -> entry - multiple_sources -> listing - multiple_sources_once -> listing_once - added -t cli option, to build listing pages, instead of guess it from the number of source files provided.
* remove specific type used to store sourcesRafael G. Martins2015-04-191-3/+3
|
* added renderer, without testsRafael G. Martins2015-04-191-0/+145