[dev] Re: Preprocessor

From: Adrian Grigore <adrian.emil.grigore_AT_gmail.com>
Date: Mon, 22 Apr 2019 17:06:51 +0300

Ooops sorry, something broke.

The format is the following:

#!/home/adi/src/pp/pp
<!doctype html>
<html lang="en">
<title></title>
<table>
#!
ls -1 "$1" | while IFS= read -r p
do
#!
  <tr>
    <td>
       $p
    </td>
  </tr>
#!
done
#!
</table>
</html>

Code is here http://adi.tilde.institute/tmp/pp.c.

On Mon, Apr 22, 2019 at 4:55 PM Adrian Grigore
<adrian.emil.grigore_AT_gmail.com> wrote:
>
> Hi,
>
> I built a preprocessor. It allows embedding shell code in any type of files.
> Can you guys give some tips or a code review?
>
> The file format it accepts is the following:
>
> #!/home/adi/src/pp/pp
> <!doctype html>
> <html lang="en">
> <title></title>
> <table>
> #!
> ls -1 "$1" | while IFS= read -r p
> do
>
> </table>
> </html>
>
>
> --
> Thank you,
> Adi,



-- 
Thank you,
Adi
Received on Mon Apr 22 2019 - 16:06:51 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 22 2019 - 21:24:08 CEST