Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | template-parser: renderer: implemented 'else' support in templates | Rafael G. Martins | 2016-07-03 | 4 | -4/+80 | |
| | | | | | | | | | 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?! :/ | |||||
* | content-parser: rewrote inline parser. | Rafael G. Martins | 2016-06-29 | 3 | -270/+489 | |
| | | | | parser is stricter now, and won't produce invalid HTML anymore. | |||||
* | debug: move debug functions to separated file | Rafael G. Martins | 2016-06-25 | 5 | -68/+101 | |
| | ||||||
* | template-parser: added some ast debug | Rafael G. Martins | 2016-06-22 | 3 | -2/+76 | |
| | ||||||
* | git-receiver: call git-config with --local | Rafael G. Martins | 2016-06-19 | 1 | -2/+2 | |
| | ||||||
* | git-receiver: fixed repository mirroring | Rafael G. Martins | 2016-06-19 | 1 | -2/+6 | |
| | | | | old git versions does not have 'git remote get-url' command. | |||||
* | renderer: added support to truncate variables. | Rafael G. Martins | 2016-05-30 | 1 | -8/+54 | |
| | | | | this commit also documents variable formatters properly. | |||||
* | blogc: fix goto statements | Rafael G. Martins | 2016-05-28 | 1 | -2/+2 | |
| | ||||||
* | blogc: avoid parsing template when called with -p | Rafael G. Martins | 2016-05-28 | 1 | -7/+7 | |
| | ||||||
* | content-parser: encode HTML entities in DESCRIPTION variable | Rafael G. Martins | 2016-05-24 | 1 | -1/+1 | |
| | ||||||
* | content-parser: fixed DESCRIPTION variable. | Rafael G. Martins | 2016-05-23 | 2 | -2/+44 | |
| | | | | | | | | | it is now built as a single line variable, that contains the full unparsed content of the first paragraph found in the source file, instead of just the first line of it. this also fixes a bug that prevented creating of DESCRIPTION variable, if the source file contained only a single line paragraph. | |||||
* | content-parser: do not use paragraphs inside blockquote for DESCRIPTION | Rafael G. Martins | 2016-05-22 | 1 | -1/+4 | |
| | ||||||
* | blogc-runserver: import external tool to blogc repository | Rafael G. Martins | 2016-04-27 | 1 | -0/+389 | |
| | | | | | | | | still in the effort to reduce maintenance work, I'm importing blogc-runserver tool to the main blogc repository. the tool is build by default, if needed headers and libraries are found. | |||||
* | blogc-git-receiver: import external tool to blogc repository | Rafael G. Martins | 2016-04-27 | 2 | -0/+502 | |
| | | | | | | | | | still in the effort to reduce maintenance work, I'm importing blogc-git-receiver tool to the main blogc repository. the tool is build by default, if needed headers are found. that means that it will probably only be built for posix-compliant operating systems. | |||||
* | remove squareball for good | Rafael G. Martins | 2016-04-27 | 13 | -13/+13 | |
| | ||||||
* | moved squareball back to blogc source tree. | Rafael G. Martins | 2016-04-27 | 2 | -0/+714 | |
| | | | | | | | 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 | 14 | -65/+105 | |
| | | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4. | |||||
* | Revert "main: loader: use file utils from squareball" | Rafael G. Martins | 2016-04-27 | 2 | -17/+61 | |
| | | | | This reverts commit c7b4bc4d64a3ce669e54b7c7dae87527d9ee3123. | |||||
* | content-parser: extract post description from content | Rafael G. Martins | 2016-04-20 | 3 | -11/+22 | |
| | | | | | | | | | 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 | -1/+3 | |
| | ||||||
* | main: loader: use file utils from squareball | Rafael G. Martins | 2016-03-19 | 2 | -61/+17 | |
| | ||||||
* | *: use squareball error infrastructure | Rafael G. Martins | 2016-03-13 | 14 | -105/+65 | |
| | ||||||
* | content-parser: fixed em/en-dash logic | Rafael G. Martins | 2016-03-05 | 1 | -2/+2 | |
| | ||||||
* | content-parser: fixed a bug in previous patch | Rafael G. Martins | 2016-03-05 | 1 | -0/+3 | |
| | ||||||
* | content-parser: convert -- and --- to &ndash and &mdash | Rafael G. Martins | 2016-03-05 | 1 | -0/+15 | |
| | ||||||
* | build: replace src/utils with squareball | Rafael G. Martins | 2016-02-26 | 18 | -1005/+303 | |
| | ||||||
* | content-parser: fixed parser bug when handling links | Rafael G. Martins | 2016-02-21 | 1 | -2/+11 | |
| | | | | | | 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 | -4/+8 | |
| | ||||||
* | content-parser: removed goto jumps | Rafael G. Martins | 2016-01-31 | 1 | -18/+7 | |
| | ||||||
* | 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 | |
| | ||||||
* | 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 | |
| | ||||||
* | 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 | |
| |