davidmoreno / onion

C library to create simple HTTP servers and Web Applications.
http://www.coralbits.com/libonion/
Other
2.02k stars 250 forks source link

otemplate mishandles {# template comments #} #224

Closed bstarynk closed 6 years ago

bstarynk commented 6 years ago

Template comments are appearing verbatim in the generated C code. I expect some login.thtml file starting with {# file login.thtml #}<!DOCTYPE html> {# a template file for Onion's template system#}<html> to be expanded into C code without any occurrence of {# and with those template comments to disappear.

davidmoreno commented 6 years ago

Comments as you detected are not supported.

Pull requests are welcome.

bstarynk commented 6 years ago

Please review and accept my commit. Notice the reindentation of files parser.c & parser.h per GNU indentation style.

Feel free to reindent with whatever technology you want