aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* file: do not call fprintf directlyRafael G. Martins2016-09-093-19/+7
|
* s/blogc_utf8_/bc_utf8_/gRafael G. Martins2016-09-094-10/+10
|
* common: error: do not prepend "blogc: " when printingRafael G. Martins2016-09-091-5/+8
|
* common: added config-parserRafael G. Martins2016-09-093-0/+267
|
* common: fix function prototypesRafael G. Martins2016-09-092-7/+7
|
* *: centralize error handlingRafael G. Martins2016-09-0916-80/+44
|
* common: rename macrosRafael G. Martins2016-09-091-3/+3
|
* *: moved error handling to src/common/Rafael G. Martins2016-09-0317-177/+217
|
* *: s/sb_/bc_/gRafael G. Martins2016-09-0321-504/+504
|
* *: big code reorganization.Rafael G. Martins2016-09-0325-19/+19
| | | | | | | - source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common
* runserver: removed uneeded struct declRafael G. Martins2016-07-071-3/+0
|
* *: fixed includesRafael G. Martins2016-07-0720-67/+25
| | | | | this refactoring was done with the help of the 'include-what-you-use' program. if this breaks the build for you, please report!
* template-parser: fixed block scopeRafael G. Martins2016-07-071-22/+41
| | | | | this patch blocks some usage that is obviously wrong and that nobody would want to use, but that should be explicitly blocked by the parser.
* file: added dedicated error typeRafael G. Martins2016-07-053-2/+6
|
* renderer: utils: fixed memory bugs found by clang static analyzerRafael G. Martins2016-07-052-9/+9
|
* blogc: only -D arguments must be validated for UTF-8Rafael G. Martins2016-07-041-5/+5
|
* utf8: skip BOM, if foundRafael G. Martins2016-07-043-1/+27
|
* blogc: added utf8 validationRafael G. Martins2016-07-034-0/+122
|
* template-parser: minor fixRafael G. Martins2016-07-031-1/+1
|
* Revert "error: improved parser error reporting"Rafael G. Martins2016-07-032-3/+3
| | | | | | this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03.
* error: improved parser error reportingRafael G. Martins2016-07-032-3/+3
| | | | | | now it shows a visual indicator '^' pointing to the position of the error, in the line after the error message. should be helpful for users writing templates, if any.
* template-parser: fixed error messageRafael G. Martins2016-07-031-2/+2
|
* template-parser: renderer: implemented 'else' support in templatesRafael G. Martins2016-07-034-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. Martins2016-06-293-270/+489
| | | | parser is stricter now, and won't produce invalid HTML anymore.
* debug: move debug functions to separated fileRafael G. Martins2016-06-255-68/+101
|
* template-parser: added some ast debugRafael G. Martins2016-06-223-2/+76
|
* git-receiver: call git-config with --localRafael G. Martins2016-06-191-2/+2
|
* git-receiver: fixed repository mirroringRafael G. Martins2016-06-191-2/+6
| | | | old git versions does not have 'git remote get-url' command.
* renderer: added support to truncate variables.Rafael G. Martins2016-05-301-8/+54
| | | | this commit also documents variable formatters properly.
* blogc: fix goto statementsRafael G. Martins2016-05-281-2/+2
|
* blogc: avoid parsing template when called with -pRafael G. Martins2016-05-281-7/+7
|
* content-parser: encode HTML entities in DESCRIPTION variableRafael G. Martins2016-05-241-1/+1
|
* content-parser: fixed DESCRIPTION variable.Rafael G. Martins2016-05-232-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 DESCRIPTIONRafael G. Martins2016-05-221-1/+4
|
* blogc-runserver: import external tool to blogc repositoryRafael G. Martins2016-04-271-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 repositoryRafael G. Martins2016-04-272-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 goodRafael G. Martins2016-04-2713-13/+13
|
* moved squareball back to blogc source tree.Rafael G. Martins2016-04-272-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. Martins2016-04-2714-65/+105
| | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4.
* Revert "main: loader: use file utils from squareball"Rafael G. Martins2016-04-272-17/+61
| | | | This reverts commit c7b4bc4d64a3ce669e54b7c7dae87527d9ee3123.
* content-parser: extract post description from contentRafael G. Martins2016-04-203-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 codeRafael G. Martins2016-04-171-1/+3
|
* main: loader: use file utils from squareballRafael G. Martins2016-03-192-61/+17
|
* *: use squareball error infrastructureRafael G. Martins2016-03-1314-105/+65
|
* content-parser: fixed em/en-dash logicRafael G. Martins2016-03-051-2/+2
|
* content-parser: fixed a bug in previous patchRafael G. Martins2016-03-051-0/+3
|
* content-parser: convert -- and --- to &ndash and &mdashRafael G. Martins2016-03-051-0/+15
|
* build: replace src/utils with squareballRafael G. Martins2016-02-2618-1005/+303
|
* content-parser: fixed parser bug when handling linksRafael G. Martins2016-02-211-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 imageRafael G. Martins2016-02-131-4/+8
|