~roryrjb/nl

Plain text to HTML converter

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~roryrjb/nl
read/write
git@git.sr.ht:~roryrjb/nl

You can also use your local clone with git send-email.

#nl

Plain text to HTML converter

#About

All this program does is convert plain text files into a more readable form when embedded in HTML, i.e. it converts line breaks into <br>s. My very simple use case is for filtering plain text README's in a cgit setup on OpenBSD.

#Installation

On OpenBSD web applications are chrooted by default to /var/www. Once you grab hold of this source you can just do make install PREFIX=/var/www. A static binary will be thenceforth be available to all chrooted applications at /bin/nl.