Commits
- Commit:
d023b3ba128914935c6e2bfb34997a0443fdf9fd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
grammar and fix typo: rigchtif → right if
- Commit:
3e8b34ba260ecb0048222375132a6998b2a8d2cc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: add `while' construct
- Commit:
52afe35820b3ceb4c85d7e72024e976a143cfd78
- From:
- Omar Polo <op@omarpolo.com>
- Date:
adjust my copyright email address
this code is now part of Game of Trees too!
- Commit:
14d86fd9156dd2aecbc0af532359e7fc3207415a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: add quoting support inside {{ ... }} blocks
- Commit:
14c31a433b611c8184d7d503eb71a5e7c648ef09
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: add -o to specify the output file
This way template can delete output file on parsing errors, which
helps a lot with make(1).
- Commit:
c063deb1a1e9296c7ac51636144f503a07b39195
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix parsing of {! !} block after content
the '{' and '!' characters were pushed back in the wrong order and so
read as "!{" instead of "{!". add regress for this case, and for
similar usage (02 change.)
- Commit:
9c75d045d714e428f2a33b50fb59d589139e3529
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: add for loops
- Commit:
8eb6aff83027bd30cfb899de1e71885de52ed93c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
u_char -> unsigned char for portability
- Commit:
37b638a4c39f2443914bb73438fc23ddfcb44d71
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: some printf -> puts conversions
- Commit:
6125bd6174efea22606903d0ca4ae21c3b07fd2a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: allow '|' in some contexts
- Commit:
95448b627ab3c0c205b0677309e4487484658a12
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: fix possible use-after-free and drop the `render' sugar
if some of the tp_* function fails, the inner code could free the
template too (that's what galileo does), so `tp->tp_ret' would access
free'd memory!
Instead, add a local variable `tp_ret' to keep track of the return
code. While here, drop the `render' shortand that adds the argument
call, the template_reset function and adapt the regress.
- Commit:
ee34715e9bf37e3f13a9d07b2ec1d817386c41fb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: preserve \
- Commit:
83e0f74d0776e6319be616d0e22926aef4a3042c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: add `printf' support
- Commit:
b449817041dc22b1fc1bfe7e3513a92415799ccf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: drop `| escape': it's the default
- Commit:
9a90a3d166d0ae512772ecb58d39629cd8250e37
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: don't spam `#lines's