Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | content-parser: do not use paragraphs inside blockquote for DESCRIPTION | Rafael G. Martins | 2016-05-22 | 1 | -4/+4 |
| | |||||
* | remove squareball for good | Rafael G. Martins | 2016-04-27 | 6 | -6/+6 |
| | |||||
* | moved squareball back to blogc source tree. | Rafael G. Martins | 2016-04-27 | 2 | -1/+960 |
| | | | | | | | i don't have enough time to maintain a separated library at this point, and worry about soname bump, library stability, etc. all the code is trivial enough to be copied around, and all the utils are implemented as single file now, to make it easier to copy. | ||||
* | Revert "*: use squareball error infrastructure" | Rafael G. Martins | 2016-04-27 | 6 | -321/+321 |
| | | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4. | ||||
* | Revert "error: removed uneeded tests" | Rafael G. Martins | 2016-04-27 | 1 | -0/+24 |
| | | | | This reverts commit 37592b57b31987519e59117d49bccd0207e67f15. | ||||
* | content-parser: extract post description from content | Rafael G. Martins | 2016-04-20 | 3 | -94/+367 |
| | | | | | | | | | description is the first line of the first paragraph parsed from content file. users can override it declaring DESCRIPTION variable in source file itself. this also fixes a bug with line endings when using single line blockquotes. | ||||
* | content-parser: do not convert -- and --- to &ndash and &mdash inside code | Rafael G. Martins | 2016-04-17 | 1 | -0/+31 |
| | |||||
* | error: removed uneeded tests | Rafael G. Martins | 2016-03-13 | 1 | -24/+0 |
| | |||||
* | *: use squareball error infrastructure | Rafael G. Martins | 2016-03-13 | 6 | -321/+321 |
| | |||||
* | content-parser: fixed em/en-dash logic | Rafael G. Martins | 2016-03-05 | 1 | -8/+8 |
| | |||||
* | content-parser: fixed a bug in previous patch | Rafael G. Martins | 2016-03-05 | 1 | -4/+4 |
| | |||||
* | content-parser: convert -- and --- to &ndash and &mdash | Rafael G. Martins | 2016-03-05 | 1 | -6/+26 |
| | |||||
* | build: replace src/utils with squareball | Rafael G. Martins | 2016-02-26 | 7 | -1408/+529 |
| | |||||
* | man: tests: minor documentation fix and more test coverage | Rafael G. Martins | 2016-02-21 | 1 | -0/+9 |
| | |||||
* | content-parser: added more tests | Rafael G. Martins | 2016-02-21 | 1 | -0/+15 |
| | |||||
* | content-parser: added more tests | Rafael G. Martins | 2016-02-21 | 1 | -0/+12 |
| | |||||
* | content-parser: fixed parser bug when handling links | Rafael G. Martins | 2016-02-21 | 1 | -0/+12 |
| | | | | | | do not handle something like this as a valid link: [asd] asd (asd) | ||||
* | content-parser: fixed bug that parsed text with '!' + link as image | Rafael G. Martins | 2016-02-13 | 1 | -0/+14 |
| | |||||
* | renderer: fix bug when 'if' evals to false after 'if' evals to true | Rafael G. Martins | 2016-01-25 | 1 | -0/+32 |
| | |||||
* | content-parser: encode html entities found in code blocks (fixes #3) | Rafael G. Martins | 2016-01-22 | 1 | -4/+16 |
| | |||||
* | template-parser: added whitespace cleaners. needs more tests and docs | Rafael G. Martins | 2016-01-14 | 2 | -14/+89 |
| | |||||
* | fixed copyright | Rafael G. Martins | 2016-01-08 | 8 | -8/+8 |
| | |||||
* | renderer: handle FOREACH_ITEM as a normal variable | Rafael G. Martins | 2016-01-08 | 1 | -4/+52 |
| | |||||
* | renderer: improved foreach tests | Rafael G. Martins | 2016-01-04 | 1 | -2/+8 |
| | |||||
* | loader: parse tags as space-separated string | Rafael G. Martins | 2015-12-29 | 1 | -2/+2 |
| | |||||
* | renderer: foreach variables should be splitted in spaces rather than commas | Rafael G. Martins | 2015-12-29 | 1 | -5/+5 |
| | |||||
* | template-parser: do not accept variables startins with numbers and _ | Rafael G. Martins | 2015-12-29 | 1 | -1/+73 |
| | |||||
* | man: renderer: template-parser: added foreach iterator support | Rafael G. Martins | 2015-12-29 | 2 | -9/+182 |
| | |||||
* | Revert "build: removing src/utils and replacing with squareball" | Rafael G. Martins | 2015-12-23 | 7 | -488/+1312 |
| | | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646. | ||||
* | build: removing src/utils and replacing with squareball | Rafael G. Martins | 2015-12-23 | 7 | -1312/+488 |
| | | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils | ||||
* | content-parser: random parser fixes | Rafael G. Martins | 2015-11-04 | 1 | -4/+30 |
| | |||||
* | Revert "content-parser: added basic rst-like directives support" | Rafael G. Martins | 2015-11-04 | 1 | -616/+4 |
| | | | | This reverts commit 1faa52052624e7c03256df0c63c43f5d40ddb57a. | ||||
* | Revert "content-parser: fix memory leak in gcc" | Rafael G. Martins | 2015-11-04 | 1 | -5/+3 |
| | | | | This reverts commit 8c5ad9b304fd405380501f5acd1f7c809a1a2746. | ||||
* | Revert "content-parser: allow directive params with variable prefix" | Rafael G. Martins | 2015-11-04 | 1 | -42/+5 |
| | | | | This reverts commit d29c85ef1751cb46c579b3292f676605d9f86951. | ||||
* | content-parser: allow directive params with variable prefix | Rafael G. Martins | 2015-11-03 | 1 | -5/+42 |
| | |||||
* | content-parser: fix memory leak in gcc | Rafael G. Martins | 2015-11-02 | 1 | -3/+5 |
| | |||||
* | content-parser: added basic rst-like directives support | Rafael G. Martins | 2015-11-02 | 1 | -4/+616 |
| | | | | | | | | | | | 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 | 1 | -0/+54 |
| | |||||
* | Allow {% if VALUE1 == VALUE2 %}, with two defines | Palmer Dabbelt | 2015-10-26 | 1 | -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 handling | Rafael G. Martins | 2015-10-24 | 1 | -39/+39 |
| | |||||
* | datetime-parser: fixed strptime error handling | Rafael G. Martins | 2015-10-24 | 1 | -0/+45 |
| | |||||
* | datetime-parser: initial implementation. not used yet | Rafael G. Martins | 2015-10-24 | 1 | -0/+631 |
| | |||||
* | error: improved error reporting for parsers | Rafael G. Martins | 2015-10-24 | 3 | -27/+78 |
| | | | | it will now report the line and the approximate position of the error. | ||||
* | error: added missing test for crlf | Rafael G. Martins | 2015-10-23 | 1 | -0/+13 |
| | |||||
* | tempalte-parser: added tests with \r\n line endings | Rafael G. Martins | 2015-10-22 | 1 | -0/+71 |
| | |||||
* | source-parser: handle \r\n line endings properly | Rafael G. Martins | 2015-10-22 | 1 | -0/+32 |
| | |||||
* | content-parser: handle \r\n line endings properly | Rafael G. Martins | 2015-10-22 | 1 | -2/+500 |
| | |||||
* | content-parser: added missing test | Rafael G. Martins | 2015-10-12 | 1 | -1/+3 |
| | |||||
* | content-parser: added id attributes to headers | Rafael G. Martins | 2015-10-12 | 2 | -23/+51 |
| | | | | the id is a slugified version of the (unparsed) header content. | ||||
* | renderer: accept empty list of files with -l | Rafael G. Martins | 2015-10-07 | 1 | -0/+30 |
| |