Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote-tracking branch 'origin/master' into feature/directives | Rafael G. Martins | 2016-01-30 | 22 | -68/+367 |
|\ | |||||
| * | renderer: fix bug when 'if' evals to false after 'if' evals to true | Rafael G. Martins | 2016-01-25 | 1 | -5/+5 |
| | | |||||
| * | content-parser: use size_t instead of unsigned len when handling strings | Rafael G. Martins | 2016-01-22 | 1 | -2/+2 |
| | | |||||
| * | content-parser: encode html entities found in code blocks (fixes #3) | Rafael G. Martins | 2016-01-22 | 2 | -2/+39 |
| | | |||||
| * | utils: string: strip form-feed and vertical-tab chars as whitespaces | Rafael G. Martins | 2016-01-14 | 1 | -2/+4 |
| | | |||||
| * | template-parser: added whitespace cleaners. needs more tests and docs | Rafael G. Martins | 2016-01-14 | 4 | -22/+129 |
| | | |||||
| * | fixed copyright | Rafael G. Martins | 2016-01-08 | 22 | -22/+22 |
| | | |||||
| * | renderer: handle FOREACH_ITEM as a normal variable | Rafael G. Martins | 2016-01-08 | 2 | -10/+15 |
| | | |||||
| * | loader: parse tags as space-separated string | Rafael G. Martins | 2015-12-29 | 1 | -3/+6 |
| | | |||||
| * | renderer: foreach variables should be splitted in spaces rather than commas | Rafael G. Martins | 2015-12-29 | 1 | -4/+8 |
| | | |||||
| * | template-parser: do not accept variables startins with numbers and _ | Rafael G. Martins | 2015-12-29 | 1 | -9/+10 |
| | | |||||
| * | man: renderer: template-parser: added foreach iterator support | Rafael G. Martins | 2015-12-29 | 4 | -1/+141 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into feature/directives | Rafael G. Martins | 2015-12-25 | 1 | -0/+3 |
|\| | |||||
| * | Revert "build: removing src/utils and replacing with squareball" | Rafael G. Martins | 2015-12-23 | 18 | -273/+942 |
| | | | | | | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646. | ||||
| * | build: removing src/utils and replacing with squareball | Rafael G. Martins | 2015-12-23 | 18 | -942/+273 |
| | | | | | | | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils | ||||
| * | main: honour locales from environment variables | Rafael G. Martins | 2015-12-02 | 1 | -0/+3 |
| | | |||||
| * | content-parser: random parser fixes | Rafael G. Martins | 2015-11-04 | 1 | -0/+18 |
| | | |||||
* | | directives: improved loader | Rafael G. Martins | 2015-11-15 | 1 | -9/+8 |
| | | |||||
* | | directives: content-parser: added blogc_directive_ctx_t | Rafael G. Martins | 2015-11-15 | 3 | -21/+36 |
| | | |||||
* | | content-parser: fixed multiple directive calls in same source | Rafael G. Martins | 2015-11-15 | 1 | -0/+2 |
| | | |||||
* | | content-parser: implemented youtube directive | Rafael G. Martins | 2015-11-04 | 3 | -3/+53 |
| | | |||||
* | | Revert "Revert "content-parser: handle errors (that are handler as warnings) ↵ | Rafael G. Martins | 2015-11-04 | 5 | -4/+13 |
| | | | | | | | | | | | | in directives"" This reverts commit 0fe9ed29207c428deda6c960c81359113f1d3384. | ||||
* | | Revert "Revert "content-parser: allow directive params with variable prefix"" | Rafael G. Martins | 2015-11-04 | 1 | -19/+28 |
| | | | | | | | | This reverts commit 37850db5081e26a26f05d062497811b864953778. | ||||
* | | Revert "Revert "content-parser: fix memory leak in gcc"" | Rafael G. Martins | 2015-11-04 | 1 | -1/+1 |
| | | | | | | | | This reverts commit 13ce0cdba95a857410208282ea5d0bb13ee1baec. | ||||
* | | Revert "Revert "content-parser: added basic rst-like directives support"" | Rafael G. Martins | 2015-11-04 | 3 | -19/+265 |
|/ | | | | This reverts commit 43bb8973e683743e780895f99f46364c7d85457f. | ||||
* | Revert "content-parser: added basic rst-like directives support" | Rafael G. Martins | 2015-11-04 | 3 | -265/+19 |
| | | | | This reverts commit 1faa52052624e7c03256df0c63c43f5d40ddb57a. | ||||
* | Revert "content-parser: fix memory leak in gcc" | Rafael G. Martins | 2015-11-04 | 1 | -1/+1 |
| | | | | This reverts commit 8c5ad9b304fd405380501f5acd1f7c809a1a2746. | ||||
* | Revert "content-parser: allow directive params with variable prefix" | Rafael G. Martins | 2015-11-04 | 1 | -28/+19 |
| | | | | This reverts commit d29c85ef1751cb46c579b3292f676605d9f86951. | ||||
* | Revert "content-parser: handle errors (that are handler as warnings) in ↵ | Rafael G. Martins | 2015-11-04 | 5 | -13/+4 |
| | | | | | | directives" This reverts commit 56736b7b39218c10efd64f305f7a35df9d4bc0af. | ||||
* | content-parser: handle errors (that are handler as warnings) in directives | Rafael G. Martins | 2015-11-04 | 5 | -4/+13 |
| | |||||
* | content-parser: allow directive params with variable prefix | Rafael G. Martins | 2015-11-03 | 1 | -19/+28 |
| | |||||
* | content-parser: fix memory leak in gcc | Rafael G. Martins | 2015-11-02 | 1 | -1/+1 |
| | |||||
* | content-parser: added basic rst-like directives support | Rafael G. Martins | 2015-11-02 | 3 | -19/+265 |
| | | | | | | | | | | | this patch adds support to something similar to reStructuredText directives [1]. the directive loader isn't implemented yet. also, the current implementation is stricter and differs a lot from the reStructuredText spec. documentation pending. this patch also fixes a few old parser bugs. [1] http://docutils.sourceforge.net/docs/ref/rst/directives.html | ||||
* | renderer: improved support for comparision between vars | Rafael G. Martins | 2015-10-28 | 2 | -59/+56 |
| | |||||
* | Allow {% if VALUE1 == VALUE2 %}, with two defines | Palmer Dabbelt | 2015-10-26 | 2 | -7/+38 |
| | | | | | | | | | | | | | | | 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. | ||||
* | error: removed dead assignment | Rafael G. Martins | 2015-10-26 | 1 | -1/+1 |
| | |||||
* | datetime-parser: remove uneeded include | Rafael G. Martins | 2015-10-25 | 1 | -1/+0 |
| | |||||
* | main: fix build on windows | Rafael G. Martins | 2015-10-24 | 1 | -0/+4 |
| | |||||
* | datetime-parser: improve error handling | Rafael G. Martins | 2015-10-24 | 4 | -56/+55 |
| | |||||
* | datetime-parser: fixed strptime error handling | Rafael G. Martins | 2015-10-24 | 1 | -3/+4 |
| | |||||
* | datetime-parser: initial implementation. not used yet | Rafael G. Martins | 2015-10-24 | 4 | -0/+396 |
| | |||||
* | error: improved error reporting for parsers | Rafael G. Martins | 2015-10-24 | 1 | -11/+39 |
| | | | | it will now report the line and the approximate position of the error. | ||||
* | content-parser: fix comment | Rafael G. Martins | 2015-10-22 | 1 | -1/+1 |
| | |||||
* | content-parser: replace useless array with boolean | Rafael G. Martins | 2015-10-22 | 1 | -6/+5 |
| | |||||
* | source-parser: handle \r\n line endings properly | Rafael G. Martins | 2015-10-22 | 1 | -0/+2 |
| | |||||
* | content-parser: handle \r\n line endings properly | Rafael G. Martins | 2015-10-22 | 1 | -31/+79 |
| | |||||
* | file: added missing header | Rafael G. Martins | 2015-10-12 | 1 | -0/+1 |
| | |||||
* | content-parser: added id attributes to headers | Rafael G. Martins | 2015-10-12 | 2 | -2/+31 |
| | | | | the id is a slugified version of the (unparsed) header content. | ||||
* | main: no need to honor umask manually | Rafael G. Martins | 2015-10-11 | 1 | -8/+1 |
| | |||||
* | main: man: fixed '-l' docs | Rafael G. Martins | 2015-10-07 | 1 | -2/+2 |
| |