First off, thanks. This is a great package + well designed & documented.
I ran into some issues while trying to get this to work with mako templates (which i use to generate email).
mako templates don't work because the BeautifulSoup parser and formatter will kill things like:
and
% if loop.index < 6:
% endif
becomes
% if loop.index < 6:
% endif
I tried forking and running on BS4, which allows for a 'formatter' option to be used on printing ( overriding your _get_output function ). I couldn't find a formatter that creates reliable or desirable results.
i think the design of this package will make it hard to work on templates for email , so i wanted to suggest a warning in the documents. If I have time, I might try and get this to work later in the week -- but I'm sadly not hopeful.
Anyways, great package.
First off, thanks. This is a great package + well designed & documented.
I ran into some issues while trying to get this to work with mako templates (which i use to generate email).
mako templates don't work because the BeautifulSoup parser and formatter will kill things like:
and
becomes
I tried forking and running on BS4, which allows for a 'formatter' option to be used on printing ( overriding your
_get_outputfunction ). I couldn't find a formatter that creates reliable or desirable results.i think the design of this package will make it hard to work on templates for email , so i wanted to suggest a warning in the documents. If I have time, I might try and get this to work later in the week -- but I'm sadly not hopeful.
Anyways, great package.